From: Bartosz Świątek Date: Tue, 10 Jul 2012 13:48:31 +0000 (+0200) Subject: - fix -at option with git (get last git tag) X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=2c4fd142732cb08eb63d5c5376cb39238d3d9435;p=packages%2Frpm-build-tools.git - fix -at option with git (get last git tag) --- diff --git a/kde4send2builders.sh b/kde4send2builders.sh index 4b5cbf1..47be9f2 100755 --- a/kde4send2builders.sh +++ b/kde4send2builders.sh @@ -177,7 +177,10 @@ fi if [ "$ATAG" == "yes" ]; then for spec in $specs; do PKG=$(echo $spec |sed -e 's/.spec//g') - LAST_AUTOTAG=$(cd $SPECDIR/packages && ksh ./builder -g -ns $PKG/$spec >/dev/null 2>&1 && cvs status -v $PKG/$spec | awk -vdist=$disttag '!/Sticky/ && $1 ~ "^auto-" dist "-"{if (!a++) print $1}') + if [ ! -d $PKG ]; then + git clone git@git.tld-linux.org:packages/${PKG} + fi + LAST_AUTOTAG=$(cd $PKG && git tag |tail -n 1) sleep 1 SENDPRIO="$SENDPRIO $spec:$LAST_AUTOTAG " done