summaryrefslogtreecommitdiff
path: root/lbmk
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-10-04 08:06:10 +0100
committerLeah Rowe <leah@libreboot.org>2023-10-04 08:06:10 +0100
commitfbd464b4f795b82990edad4901f6812b10ca3260 (patch)
tree6c39e3222dbdd67875720d84900cbc1348c2e42b /lbmk
parente638c3e41135292a7398e4c85a2dfd037be70ce3 (diff)
include/err.sh: checkgit,checkversion
call these as functions, instead of executing scripts Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'lbmk')
-rwxr-xr-xlbmk10
1 files changed, 4 insertions, 6 deletions
diff --git a/lbmk b/lbmk
index f4544418..6ccf4db5 100755
--- a/lbmk
+++ b/lbmk
@@ -12,12 +12,10 @@ set -u -e
. "include/export.sh"
. "include/option.sh"
-read projectname < projectname
linkpath="${0}"
linkname="${linkpath##*/}"
buildpath="./script/${linkname}"
-mode=""
-option=""
+eval "$(setvars "" mode option project version versiondate)"
main()
{
@@ -25,8 +23,8 @@ main()
initialise_command $@
shift 2
- ./checkgit || fail "Please read: https://libreboot.org/docs/build/"
- ./checkversion || fail "Cannot check ${projectname} version"
+ check_git
+ check_project
execute_command $@
lbmk_exit 0
@@ -101,7 +99,7 @@ usage()
Example: ./build grub list, which would yield:
$(./build grub list)
- Refer to ${projectname} documentation for more info.
+ Refer to ${project} documentation for more info.
EOF
}