summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/cmd/build.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/cmd/build.sh b/lib/cmd/build.sh
index 843e5f2..d04b2be 100644
--- a/lib/cmd/build.sh
+++ b/lib/cmd/build.sh
@@ -57,12 +57,15 @@ cmd_build_main()
'Package Version'
if ${cmd_build_old_opkbuild}; then
opkbuild_plat_opt='P'
+ opkbuild_optstring='bBASFT:a:P:DdCcr:hV'
else
opkbuild_plat_opt='p'
+ opkbuild_optstring="$(cat \
+ "${root}/usr/share/opkbuild/optstring")"
fi
arch="$(cat "${root}/etc/proteanos_arch")"
plat="$(cat "${root}/etc/proteanos_plat")"
- while getopts "a:${opkbuild_plat_opt}:" opt 2>/dev/null; do
+ while getopts "${opkbuild_optstring}" opt 2>/dev/null; do
case "${opt}" in
a)
arch="${OPTARG}"