[projects/pld-builder.new] Updated for git

baggins baggins at pld-linux.org
Fri Aug 10 21:29:26 CEST 2012


commit 68a30f8a4c2c77a16d9009b2177c995f6c0b1c34
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Aug 10 21:29:08 2012 +0200

    Updated for git

 client/rebuild-th-kernel.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/client/rebuild-th-kernel.sh b/client/rebuild-th-kernel.sh
index 3688bae..654b660 100755
--- a/client/rebuild-th-kernel.sh
+++ b/client/rebuild-th-kernel.sh
@@ -32,7 +32,7 @@ pkgs_longterm="
 # autotag from rpm-build-macros
 # displays latest used tag for a specfile
 autotag() {
-	local out spec pkg
+	local out spec pkg fmt eval_git
 	for spec in "$@"; do
 		# strip branches
 		pkg=${spec%:*}
@@ -42,8 +42,12 @@ autotag() {
 		pkg=${pkg#*/}
 		# or .ext
 		pkg=${pkg%%.spec}
-		out=$(cvs status -v $spec | awk "!/Sticky/&&/auto-$dist-$pkg-$alt_kernel/{if (!a++) print \$1}")
+		cd $pkg
+		fmt='r=%(refname); echo ${r#refs/tags/}'
+		eval_git=`git for-each-ref refs/tags/auto/${dist}/${pkg}-${alt_kernel}* --sort=-authordate --format="$fmt" --count=1 --shell`
+		out=$(eval $eval_git)
 		echo "$spec:$out"
+		cd -
 	done
 }
 


More information about the pld-cvs-commit mailing list