X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=kde4send2builders.sh;h=02561c636fef7fa0b9469b000a5e6f6936d3d493;hb=93ab33314565da67cff1bcb5fc21f89484c59e2d;hp=47be9f298c7f4f8b8852f48a53509b404dfcd8f9;hpb=2c4fd142732cb08eb63d5c5376cb39238d3d9435;p=packages%2Frpm-build-tools.git diff --git a/kde4send2builders.sh b/kde4send2builders.sh index 47be9f2..02561c6 100755 --- a/kde4send2builders.sh +++ b/kde4send2builders.sh @@ -16,6 +16,8 @@ usage() { echo " -b --builder VALUE" echo " choose a particular builder, default all" echo " -p --priority VALUE (default: 2)" + echo " -s --skip-pull (default: no)" + echo " skip git pull when getting autotag" echo " -h --help" echo " show this help" echo "" @@ -38,6 +40,7 @@ ATAG=no SENDPRIO= BUILDER= PRIO=2 +SKIPPULL=0 #SPECDIR=$(rpm -E %_specdir) SPECDIR=~/rpm @@ -120,6 +123,10 @@ while [ $# -gt 0 ]; do PRIO=$2 shift ;; + + --skip-pull | -s ) + SKIPPULL=1 + ;; --help | -h ) usage @@ -180,7 +187,11 @@ if [ "$ATAG" == "yes" ]; then if [ ! -d $PKG ]; then git clone git@git.tld-linux.org:packages/${PKG} fi - LAST_AUTOTAG=$(cd $PKG && git tag |tail -n 1) + if [ $SKIPPULL -lt 1 ]; then + LAST_AUTOTAG=$(cd $PKG && git pull >/dev/null && git tag |tail -n 1) + else + LAST_AUTOTAG=$(cd $PKG && git tag |tail -n 1) + fi sleep 1 SENDPRIO="$SENDPRIO $spec:$LAST_AUTOTAG " done