move build/command/options to include/option.sh

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-09-27 21:46:20 +01:00
parent a00b43375a
commit 74c48a881d
6 changed files with 20 additions and 27 deletions
+2 -1
View File
@@ -8,6 +8,7 @@
set -u -e
. "include/err.sh"
. "include/option.sh"
read projectname < projectname
read our_version < version
@@ -66,7 +67,7 @@ handle_dependencies()
[ -f "${listfile}" ] || fail "list file, ${listfile}, does not exist"
# Build for all targets if no argument is given
targets=$(./build command options "${cfgsdir}") || \
targets=$(listitems "${cfgsdir}") || \
fail "Cannot get options for ${cfgsdir}"
[ $# -gt 0 ] && targets=$@