commit ad458cbe9de3a29d50257f9ef0737df4fbf92536
Author: Jan RÄ™korajski <[email protected]>
Date:   Fri Aug 10 22:44:55 2012 +0200

    A better way to get last tag (thanks dreanog :)

 client/rebuild-th-kernel.sh | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/client/rebuild-th-kernel.sh b/client/rebuild-th-kernel.sh
index 3bdabbe..b0097e7 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 fmt eval_git
+       local out spec pkg
        for spec in "$@"; do
                # strip branches
                pkg=${spec%:*}
@@ -43,9 +43,7 @@ autotag() {
                # or .ext
                pkg=${pkg%%.spec}
                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)
+               out=$(git for-each-ref 
refs/tags/auto/${dist}/${pkg}-${alt_kernel}* --sort=-authordate 
--format='%(refname:short)' --count=1)
                echo "$spec:$out"
                cd -
        done
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to