[packages/rpm-build-tools] shrc: covert ac-tag to git

glen glen at pld-linux.org
Sun Aug 12 22:34:38 CEST 2012


commit 5d6ca1569bdd4d7f494f87b1f9976cdf88d4949e
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Aug 12 23:34:19 2012 +0300

    shrc: covert ac-tag to git

 rpm-build.sh | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/rpm-build.sh b/rpm-build.sh
index a04dc94..312248f 100755
--- a/rpm-build.sh
+++ b/rpm-build.sh
@@ -15,10 +15,22 @@ if [ "$dist" ]; then
 
 alias ipoldek-$dist="poldek -q --sn $dist --cmd"
 alias $dist-provides="ipoldek-$dist what-provides"
-alias $dist-tag="./builder -cf -T $(echo $dist | tr '[a-z]' '[A-Z]')-branch -r HEAD"
 alias $dist-verify=dist-verify
 alias $dist-requires=dist-requires
 
+# move AC-branch tag to current checkout
+# if AC-branch as branch exists, it is first removed
+# TODO: refuse to delete AC-branch if that branch point is unassociated (has no tag on the same hash)
+ac-tag() {
+	# see if remote has branch present
+	if [ -n "$(git branch -r | grep AC-branch)" ]; then
+		git push --delete origin AC-branch
+	fi
+
+	git tag -f AC-branch
+	git push origin AC-branch
+}
+
 # undo spec utf8
 # note: it will do it blindly, so any lang other than -pl is most likely broken
 specutfundo() {


More information about the pld-cvs-commit mailing list