diff options
author | Leah Rowe <leah@libreboot.org> | 2023-10-04 08:06:10 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-10-04 08:06:10 +0100 |
commit | fbd464b4f795b82990edad4901f6812b10ca3260 (patch) | |
tree | 6c39e3222dbdd67875720d84900cbc1348c2e42b /lbmk | |
parent | e638c3e41135292a7398e4c85a2dfd037be70ce3 (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-x | lbmk | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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 } |