abuild: add -K for keeping tempdirs and deps

This commit is contained in:
Natanael Copa 2015-09-08 09:04:45 +02:00
parent 92186b70ca
commit 4bc9e3dd6e
1 changed files with 3 additions and 1 deletions

View File

@ -2041,6 +2041,7 @@ Options:
-h Show this help -h Show this help
-i Install PKG after successful build -i Install PKG after successful build
-k Keep built packages, even if APKBUILD or sources are newer -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) -m Disable colors (monochrome)
-p Set package destination directory -p Set package destination directory
-P Set PKGDEST to REPODEST/<repo>/\$CARCH, where repo is the parents dir name -P Set PKGDEST to REPODEST/<repo>/\$CARCH, where repo is the parents dir name
@ -2080,7 +2081,7 @@ EOF
APKBUILD="${APKBUILD:-./APKBUILD}" APKBUILD="${APKBUILD:-./APKBUILD}"
unset force unset force
unset recursive unset recursive
while getopts "AcdfFhi:kimnp:P:qrRs:u" opt; do while getopts "AcdfFhi:kKimnp:P:qrRs:u" opt; do
case $opt in case $opt in
'A') echo "$CARCH"; exit 0;; 'A') echo "$CARCH"; exit 0;;
'c') enable_colors 'c') enable_colors
@ -2091,6 +2092,7 @@ while getopts "AcdfFhi:kimnp:P:qrRs:u" opt; do
'h') usage;; 'h') usage;;
'i') install_after="$install_after $OPTARG";; 'i') install_after="$install_after $OPTARG";;
'k') keep="-k";; 'k') keep="-k";;
'K') CLEANUP="" ERROR_CLEANUP="" ;;
'm') disable_colors 'm') disable_colors
color_opt="-m";; color_opt="-m";;
'n') die "Use newapkbuild to create new aports";; 'n') die "Use newapkbuild to create new aports";;