diff options
author | Leah Rowe <leah@libreboot.org> | 2024-06-25 00:24:59 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-06-25 00:24:59 +0100 |
commit | 2b4c6ee5ca77652ba6080dc76acd665f626f346d (patch) | |
tree | 0daddf21744a42b80c3f38e10a98f1ca1917fdb3 | |
parent | c79fb125eb798611269990eeda1affbe50e9665e (diff) |
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 <leah@libreboot.org>
-rwxr-xr-x | include/lib.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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() { |