summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgit-version-gen3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-version-gen b/git-version-gen
index 3eb6a42..d868952 100755
--- a/git-version-gen
+++ b/git-version-gen
@@ -3,7 +3,7 @@ SRCDIR=`dirname $0`
3if test -n "$1"; then 3if test -n "$1"; then
4 VER=$1 4 VER=$1
5else 5else
6 if test -d "${SRCDIR}/.git" && test -x "`which git`" ; then 6 if test -r "${SRCDIR}/.git" && test -x "`which git`" ; then
7 git update-index -q --refresh 7 git update-index -q --refresh
8 if ! VER=`git describe --tags --dirty 2>/dev/null`; then 8 if ! VER=`git describe --tags --dirty 2>/dev/null`; then
9 COMMIT=`git rev-parse --short HEAD` 9 COMMIT=`git rev-parse --short HEAD`
@@ -16,4 +16,5 @@ else
16 fi 16 fi
17 fi 17 fi
18fi 18fi
19VER=`printf %s "$VER" | head -n1`
19printf %s "$VER" 20printf %s "$VER"