Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit8d0f286b6fe1067ff98c25f0956af0517a0e0e7a (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-07-23 13:18:41 +0200
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-07-23 13:18:41 +0200
Filesdd40ed4dbbd1eb4e1b2674cf3ed8ff64c28fa543
goodwolf-8d0f286b6fe1067ff98c25f0956af0517a0e0e7a.tar
goodwolf-8d0f286b6fe1067ff98c25f0956af0517a0e0e7a.tar.gz
goodwolf-8d0f286b6fe1067ff98c25f0956af0517a0e0e7a.zip
Parent768ad801aaac4012b94131f00040e3b9dc629773 (diff)
version.sh: New file
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..9f6573c
--- /dev/null
+++ b/version.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+echo -n '0.3.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