From 2c4fd142732cb08eb63d5c5376cb39238d3d9435 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20=C5=9Awi=C4=85tek?= Date: Tue, 10 Jul 2012 15:48:31 +0200 Subject: [PATCH] - fix -at option with git (get last git tag) --- kde4send2builders.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.46.0