Browse files

Add script to tag repo with the version number in the VERSION file

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  • Loading branch information...
1 parent fe7f60f commit 5b56a83a359973db861b4006d7510f2efb75b87d Mike McClurg committed Nov 29, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 git-tag-version.sh
View
10 git-tag-version.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# Tag the master and debian branch HEADs with the version in ./VERSION,
+# according to format specified in ./debian/gbp.conf
+
+VERSION=$(cat VERSION | tr -d '\n')
+
+# Retag master and debian
+git tag -f -a master/${VERSION} master -m "Tagged master branch with version $version"
+#git tag -f -a debian/${VERSION} debian -m "Tagged debian branch with version $version"

0 comments on commit 5b56a83

Please sign in to comment.