Updated svn version scripts for git

This commit is contained in:
o9000
2015-04-24 18:45:25 +02:00
parent 3467a44761
commit 2357e31965
4 changed files with 37 additions and 44 deletions

3
get_version.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
git describe --exact-match 2>/dev/null || echo "0.11-git$(git show -s --pretty=format:%cI.%h | tr -d ':' | tr -d '-' | tr '.' '-' | sed 's/T[0-9\+]*//g')"