From a09cce7ebcad6660d00f6f260a60cdeb985507bc Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 24 Aug 2010 19:24:06 +0200 Subject: Simple helper to tag a version if using git-svn --- examples/gbp-svn-tag | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/gbp-svn-tag (limited to 'examples') diff --git a/examples/gbp-svn-tag b/examples/gbp-svn-tag new file mode 100644 index 00000000..374b23a1 --- /dev/null +++ b/examples/gbp-svn-tag @@ -0,0 +1,18 @@ +#!/bin/sh +# +# Helper script to tag a version in SVN if using git-svn(1) + +DIST=$(dpkg-parsechangelog | awk "/^Distribution:/{ print \$2; }") +VERSION=$(dpkg-parsechangelog | awk "/^Version:/{ print \$2; }") + + +if [ "$DIST" = "UNRELEASED" ]; then + echo "Distribution is unreleased" + exit 1 +elif [ -z "$VERSION" ]; then + echo "Cant read package version" + exit 1 +fi + +git svn tag -m"Tagging system-config-printer ($VERSION)" $VERSION + -- cgit v1.2.3