[packages/rpm-build-tools/merge-pld-builder-client: 2252/2675] Updated for git
glen
glen at pld-linux.org
Mon Dec 19 22:03:32 CET 2016
commit 4eb34d98e6d44332bb081b3c7b3676e4bc263c71
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Aug 10 21:29:08 2012 +0200
Updated for git
rebuild-th-kernel.sh | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/rebuild-th-kernel.sh b/rebuild-th-kernel.sh
index 3688bae..654b660 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
+ 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
}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/cca6584b96e6c33d0732d559e43e100d804e2ecd
More information about the pld-cvs-commit
mailing list