Summary Files Commits Branches @commit @diff @stats
path: root / version.sh
diff options
context:
space:
mode:
1 files changed, 9 insertions, 0 deletions
-rwxr-xr-xversion.sh9
diff --git a/version.sh b/version.sh
new file mode 100755
index 0000000..a87283e
--- /dev/null
+++ b/version.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+echo -n '0.4.0'
+hash=$(git --git-dir="$(dirname $0)/.git" rev-parse --short HEAD 2>/dev/null)
+
+if [ -n "$hash" ]
+then
+ printf '+g%s' "$hash"
+fi
+echo