summaryrefslogtreecommitdiffstats
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-09-08 09:04:45 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-09-08 09:04:45 +0200
commit4bc9e3dd6ebf070b8611ab3d147fb48146b60db6 (patch)
tree0927a6a424448a04e5583f818918af444fb6cc21 /abuild.in
parent92186b70ca9c520fc726e0885aac633aadace655 (diff)
downloadabuild-4bc9e3dd6ebf070b8611ab3d147fb48146b60db6.tar.bz2
abuild-4bc9e3dd6ebf070b8611ab3d147fb48146b60db6.tar.xz
abuild: add -K for keeping tempdirs and deps
Diffstat (limited to 'abuild.in')
-rw-r--r--abuild.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index 952048b..f2b322d 100644
--- a/abuild.in
+++ b/abuild.in
@@ -2041,6 +2041,7 @@ Options:
-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)
-p Set package destination directory
-P Set PKGDEST to REPODEST/<repo>/\$CARCH, where repo is the parents dir name
@@ -2080,7 +2081,7 @@ EOF
APKBUILD="${APKBUILD:-./APKBUILD}"
unset force
unset recursive
-while getopts "AcdfFhi:kimnp:P:qrRs:u" opt; do
+while getopts "AcdfFhi:kKimnp:P:qrRs:u" opt; do
case $opt in
'A') echo "$CARCH"; exit 0;;
'c') enable_colors
@@ -2091,6 +2092,7 @@ while getopts "AcdfFhi:kimnp:P:qrRs:u" opt; do
'h') usage;;
'i') install_after="$install_after $OPTARG";;
'k') keep="-k";;
+ 'K') CLEANUP="" ERROR_CLEANUP="" ;;
'm') disable_colors
color_opt="-m";;
'n') die "Use newapkbuild to create new aports";;