summaryrefslogtreecommitdiff
path: root/abump.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-09-30 06:43:27 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-09-30 06:45:22 +0000
commit624d98d599859d60cb4a015a1ea544be2f14fb42 (patch)
treef7421c9bd05412a1c53d28a82f28e79db48a051a /abump.in
parent715129c348846128bf63cadcfc84825df250b3b8 (diff)
downloadabuild-624d98d599859d60cb4a015a1ea544be2f14fb42.tar.gz
abuild-624d98d599859d60cb4a015a1ea544be2f14fb42.tar.bz2
abuild-624d98d599859d60cb4a015a1ea544be2f14fb42.tar.xz
abuild-624d98d599859d60cb4a015a1ea544be2f14fb42.zip
abump: add -k option to keep existing built packages
Diffstat (limited to 'abump.in')
-rwxr-xr-xabump.in11
1 files changed, 8 insertions, 3 deletions
diff --git a/abump.in b/abump.in
index 6675af5..03d1bd0 100755
--- a/abump.in
+++ b/abump.in
@@ -42,18 +42,23 @@ usage() {
echo ""
echo " -h show this help"
echo " -R run abuild with -R for recursive building"
+ echo " -k keep existing packages"
exit 0
}
-abuild_opts="-r"
-while getopts "hR" opt; do
+keep=
+recursive="-r"
+while getopts "hkR" opt; do
case $opt in
h) usage;;
- R) abuild_opts="-R";;
+ k) keep="-k";;
+ R) recursive="-R";;
esac
done
shift $(( $OPTIND - 1))
+abuild_opts="$recursive $keep"
+
while [ $# -gt 0 ]; do
( do_bump "$1" ) || exit 1
shift