diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-09-01 11:57:07 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-09-01 11:57:07 (EDT) |
commit | 0c19911bbe4800231243d18e9eee86bf2114b0c8 (patch) | |
tree | 74fd0c504dc8424dbe6ab8653274653c594e2bc2 /lib/cmd | |
parent | 787066e57ef86c9ffb3dbe71de56350b46160d7d (diff) |
build: Use opkbuild's optstring
Diffstat (limited to 'lib/cmd')
-rw-r--r-- | lib/cmd/build.sh | 5 |
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}" |