xsf-tag |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

New commits:
commit dfc9e425604b4aadacb72ec2ecd64e79f08c3ee9
Author: Cyril Brulebois <k...@debian.org>
Date:   Wed Nov 17 17:33:06 2010 +0100

    Add tagging script by Julien.

diff --git a/xsf-tag b/xsf-tag
new file mode 100755
index 0000000..1f02ced
--- /dev/null
+++ b/xsf-tag
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+set -e
+
+package=$(dpkg-parsechangelog | awk '/^Source: / { print $2 }')
+version=$(dpkg-parsechangelog | awk '/^Version: / { print $2 }')
+dist=$(dpkg-parsechangelog | awk '/^Distribution: / { print $2 }')
+
+if [ -z "$package" ]; then
+  echo debian/changelog not found >&2
+  exit 1
+fi
+if [ "$dist" = UNRELEASED ]; then
+  echo "can't upload to UNRELEASED" >&2
+  exit 1
+fi
+
+tagversion=${version/:/_}
+tagversion=${tagversion/\~/-}
+
+tag=${package}-${tagversion}
+
+git tag -s -m "Tagging upload of $package $version to $dist." $tag
+echo Tagged $tag


-- 
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1piksg-0003po...@alioth.debian.org

Reply via email to