summaryrefslogtreecommitdiff
path: root/lbmk
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-27 21:46:20 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-27 22:31:24 +0100
commit74c48a881df378a83e261c2785012609d81d801e (patch)
tree52dcd41154762a823bf1d5d06c7a788536aea874 /lbmk
parenta00b43375a7d4a33b6569c0b6ccb9e9291877bb5 (diff)
move build/command/options to include/option.sh
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'lbmk')
-rwxr-xr-xlbmk7
1 files changed, 4 insertions, 3 deletions
diff --git a/lbmk b/lbmk
index eac6afca..395cd130 100755
--- a/lbmk
+++ b/lbmk
@@ -10,6 +10,7 @@ set -u -e
. "include/err.sh"
. "include/export.sh"
+. "include/option.sh"
read projectname < projectname
linkpath="${0}"
@@ -45,7 +46,7 @@ initialise_command()
fail "running this command as root is not permitted"
[ "${mode}" = "help" ] && usage ${0} && lbmk_exit 0
- [ "${mode}" = "list" ] && ./build command options "${buildpath}" && \
+ [ "${mode}" = "list" ] && listitems "${buildpath}" && \
lbmk_exit 0
[ $# -lt 2 ] && usage ${0} && lbmk_exit 1
@@ -78,7 +79,7 @@ install_packages()
execute_command()
{
if [ "${option}" = "list" ]; then
- ./build command options "${buildpath}/${mode}" || \
+ listitems "${buildpath}/${mode}" || \
fail "execute_command: cannot list command options"
lbmk_exit 0
fi
@@ -95,7 +96,7 @@ usage()
USAGE: ${progname} <MODE> <OPTION>
possible values for 'mode':
- $(./build command options "${buildpath}")
+ $(listitems "${buildpath}")
For each of the above modes, you may also do:
${progname} <MODE> list