abuild.in: fixup flags and usage text

This commit is contained in:
Pete Dietl 2019-05-22 07:53:37 -05:00 committed by Natanael Copa
parent e476188c6f
commit beb1b41054
1 changed files with 3 additions and 3 deletions

View File

@ -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 ))