]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
Updated for git
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 10 Aug 2012 19:29:08 +0000 (21:29 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 10 Aug 2012 19:29:08 +0000 (21:29 +0200)
client/rebuild-th-kernel.sh

index 3688bae8b3ee43a3707aec90a981821c260142a2..654b6603794ecb1cd0e3e66c4cdca0da769d7cbe 100755 (executable)
@@ -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
 }
 
This page took 0.094564 seconds and 4 git commands to generate.