From beb1b410548527a2eeb22af97dd2367e352ece83 Mon Sep 17 00:00:00 2001 From: Pete Dietl Date: Wed, 22 May 2019 07:53:37 -0500 Subject: abuild.in: fixup flags and usage text --- abuild.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/abuild.in b/abuild.in index 42ca236..d0a1b44 100644 --- a/abuild.in +++ b/abuild.in @@ -103,7 +103,7 @@ cleanup() { pkgdir) msg "Cleaning up pkgdir"; rm -rf "$pkgbasedir";; srcdir) msg "Cleaning up srcdir"; cleanup_srcdir;; deps) - if [ -z "$install_after" ] && [ -n "$uninstall_after" ]; then + if [ -n "$uninstall_after" ]; then msg "Uninstalling dependencies..." undeps fi @@ -2509,7 +2509,6 @@ usage() { -f Force specified cmd (skip checks: apk up to date, arch, libc) -F Force run as root -h Show this help - -i Install PKG after successful build -k Keep built packages, even if APKBUILD or sources are newer -K Keep buildtime temp dirs and files (srcdir/pkgdir/deps) -m Disable colors (monochrome) @@ -2557,7 +2556,7 @@ usage() { APKBUILD="${APKBUILD:-./APKBUILD}" unset force unset recursive -while getopts "AcdD:fFhkKimnp:P:qrRs:uv" opt; do +while getopts ":AcdD:fFhkKmnP:qrRs:uv" opt; do case $opt in 'A') echo "$CARCH"; exit 0;; 'c') enable_colors @@ -2580,6 +2579,7 @@ while getopts "AcdD:fFhkKimnp:P:qrRs:uv" opt; do 'u') upgrade="-u" recursive="-R";; 'v') set -x;; + '?') die "Unrecognized option: $OPTARG";; esac done shift $(( $OPTIND - 1 )) -- cgit v1.2.3