From 0c19911bbe4800231243d18e9eee86bf2114b0c8 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 01 Sep 2014 11:57:07 -0400 Subject: build: Use opkbuild's optstring --- 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}" -- cgit v0.9.1