summaryrefslogtreecommitdiff
path: root/git/tag.sh
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-07-21 08:45:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-07-21 08:45:08 +0200
commit4662e4847402be59197d5ac123cdabb1c760c8a7 (patch)
treea098585c9a777d2596173f38e4990d49457b6ecd /git/tag.sh
parent18193c9635a5f2e926b4faf6d153e42ee7b367f8 (diff)
Add helper git scripts4.0.0
Diffstat (limited to 'git/tag.sh')
-rwxr-xr-xgit/tag.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/git/tag.sh b/git/tag.sh
new file mode 100755
index 0000000..935934f
--- /dev/null
+++ b/git/tag.sh
@@ -0,0 +1,26 @@
+#! /bin/sh
+
+# Assume this script never run via PATH.
+#
+self=`realpath $0`
+. `dirname $self`/modules
+
+wd=`pwd`
+
+if [ "$1" = "" ]; then
+ echo "missing version" 1>&2
+ exit 1
+fi
+
+for i in $modules; do
+ echo "tag $i" 1>&2
+ cd $i
+ git tag -a $1 -m "Tag version $1"
+
+ if [ $? -ne 0 ]; then
+ echo "tag FAILED" 1>&2
+ exit 1
+ fi
+
+ cd $wd
+done