abump: add -k option to keep existing built packages
This commit is contained in:
parent
715129c348
commit
624d98d599
11
abump.in
11
abump.in
@ -42,18 +42,23 @@ usage() {
|
|||||||
echo ""
|
echo ""
|
||||||
echo " -h show this help"
|
echo " -h show this help"
|
||||||
echo " -R run abuild with -R for recursive building"
|
echo " -R run abuild with -R for recursive building"
|
||||||
|
echo " -k keep existing packages"
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
abuild_opts="-r"
|
keep=
|
||||||
while getopts "hR" opt; do
|
recursive="-r"
|
||||||
|
while getopts "hkR" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
h) usage;;
|
h) usage;;
|
||||||
R) abuild_opts="-R";;
|
k) keep="-k";;
|
||||||
|
R) recursive="-R";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
shift $(( $OPTIND - 1))
|
shift $(( $OPTIND - 1))
|
||||||
|
|
||||||
|
abuild_opts="$recursive $keep"
|
||||||
|
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
( do_bump "$1" ) || exit 1
|
( do_bump "$1" ) || exit 1
|
||||||
shift
|
shift
|
||||||
|
Loading…
x
Reference in New Issue
Block a user