From 2b4c6ee5ca77652ba6080dc76acd665f626f346d Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 25 Jun 2024 00:24:59 +0100 Subject: lib.sh: introduce mandatory check of projectname error out if it's not set. ditto projectsite. that way, if the files are accidentally deleted, or not added in a derivative of the build system, you'll know. Signed-off-by: Leah Rowe --- include/lib.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/lib.sh b/include/lib.sh index 907cde47..27cf184f 100755 --- a/include/lib.sh +++ b/include/lib.sh @@ -45,6 +45,7 @@ eval `setvars "" tmpdir _nogit board boarddir relname versiondate projectsite \ for fv in projectname projectsite version versiondate; do eval "[ ! -f "$fv" ] || read -r $fv < \"$fv\" || :" done +chkvars projectname projectsite setcfg() { -- cgit v1.2.1