summary refs log tree commit diff
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 @@
+v=$(git-describe --abbrev=4 HEAD | sed -e 's/-/./g')
+test -z "$v" && exit 1
+echo "CGIT_VERSION = $v"
+echo "CGIT_VERSION = $v" > VERSION