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

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

 rebuild-th-kernel.sh | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/rebuild-th-kernel.sh b/rebuild-th-kernel.sh
index 3bdabbe..b0097e7 100755
--- a/rebuild-th-kernel.sh
+++ b/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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/cca6584b96e6c33d0732d559e43e100d804e2ecd

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to