From 5b56a83a359973db861b4006d7510f2efb75b87d Mon Sep 17 00:00:00 2001 From: Mike McClurg Date: Tue, 29 Nov 2011 17:16:05 +0000 Subject: [PATCH] Add script to tag repo with the version number in the VERSION file Signed-off-by: Mike McClurg --- git-tag-version.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 git-tag-version.sh diff --git a/git-tag-version.sh b/git-tag-version.sh new file mode 100755 index 0000000000..6d1d3673d7 --- /dev/null +++ b/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"