From c240c21d77f934227a2aae07d36cafe4339674a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Sat, 15 Feb 2020 12:47:23 +0000 Subject: subr/build_init.subr:buildp_init_getopts(): split -p jobs from -P due to getopts(1) constraints. --- subr/build_init.subr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subr/build_init.subr b/subr/build_init.subr index 1932c49d..8e3adca5 100644 --- a/subr/build_init.subr +++ b/subr/build_init.subr @@ -144,7 +144,7 @@ buildp_init_getopts() { *) cat etc/build.usage; exit 1; ;; esac; shift $((${OPTIND}-1)); OPTIND=1; else - _rc=1; _status="Error: invalid argument \`${1}'."; break; + break; fi; done; if [ "${_rc}" -eq 0 ]; then @@ -165,8 +165,8 @@ buildp_init_prereqs() { awk bunzip2 cat chmod cp date find git grep \ gunzip gzip hostname install kill ln lzip make \ mkdir mkfifo mv openssl paste patch pgrep pkill \ - printf readlink rm sed seq shuf sort stat tail \ - tar test touch tr wget xz >/dev/null; then + printf readlink rm sed seq sort stat tail tar \ + test touch tr wget xz >/dev/null; then _rc=4; _status="Error: missing prerequisite package(s)."; elif ! awk -V 2>/dev/null | grep -q "^GNU Awk "; then _rc=5; _status="Error: awk(1) in \$PATH must be GNU Awk."; -- cgit v1.2.3