aboutsummaryrefslogtreecommitdiffstats
path: root/gen-version.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gen-version.sh')
-rwxr-xr-xgen-version.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/gen-version.sh b/gen-version.sh
new file mode 100755
index 0000000..4c60f60
--- /dev/null
+++ b/gen-version.sh
@@ -0,0 +1,4 @@
1v=$(git-describe --abbrev=4 HEAD | sed -e 's/-/./g')
2test -z "$v" && exit 1
3echo "CGIT_VERSION = $v"
4echo "CGIT_VERSION = $v" > VERSION