aboutsummaryrefslogtreecommitdiffstats
path: root/maintainer/tag
diff options
context:
space:
mode:
Diffstat (limited to 'maintainer/tag')
-rwxr-xr-xmaintainer/tag29
1 files changed, 29 insertions, 0 deletions
diff --git a/maintainer/tag b/maintainer/tag
new file mode 100755
index 0000000..b002834
--- /dev/null
+++ b/maintainer/tag
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# tag:
+#
+# Copyright (c) 2017 James McKenzie <foss@madingley.org>,
+# All rights reserved.
+#
+#
+#
+git commit -a -m "tagging"
+
+FILES=`cat version-files`
+CHK=`cat $FILES | md5sum | awk '{print $1}'`
+TG=`grep $CHK version-md5sums | awk '{print $2}'`
+if [ .$TG != . ]; then
+ echo This code already tagged as Version $TG
+ exit 0
+fi
+
+MAJOR=`cat version-major`
+MINOR=`cat version-minor`
+MICRO=$[ `cat version-micro` + 1 ]
+
+echo $MICRO > version-micro
+
+echo "$CHK ${MAJOR}.${MINOR}.${MICRO}" >> version-md5sums
+
+git commit -a -m "tagging"
+git tag twa_t-$MAJOR_$MINOR_$MICRO