summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-12-27 17:26:37 +0000
committerLeah Rowe <leah@libreboot.org>2023-12-27 17:26:37 +0000
commitbc87b5f67e49c8e51e58a68e0651fd6ed176bb7d (patch)
treea99535cb2dd62746d263e17d5f25aeebb42f0224 /include
parent0c1d08d8b1c5757ca10487fb3256741718009ac1 (diff)
lbmk scripts: general code cleanup
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/err.sh1
-rwxr-xr-xinclude/option.sh4
2 files changed, 2 insertions, 3 deletions
diff --git a/include/err.sh b/include/err.sh
index 3c596b17..cab81d02 100755
--- a/include/err.sh
+++ b/include/err.sh
@@ -53,7 +53,6 @@ check_project()
p_="x_ printf \"%s\\n\" \"\$$p\" > $p"
eval "x$p_ || $p_"
done
-
export LOCALVERSION="-${projectname}-${version%%-*}"
}
diff --git a/include/option.sh b/include/option.sh
index 31411423..8367d447 100755
--- a/include/option.sh
+++ b/include/option.sh
@@ -46,9 +46,9 @@ scan_config()
set ${line} 1>/dev/null 2>/dev/null || :
if [ "${1%:}" = "depend" ]; then
depend="${depend} ${2}"
- continue
+ else
+ eval "${1%:}=\"${2}\""
fi
- eval "${1%:}=\"${2}\""
done << EOF
$(eval "awk '${awkstr}' \"${revfile}\"")
EOF