summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xget_vers.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/get_vers.sh b/get_vers.sh
index 86de08c..adc764c 100755
--- a/get_vers.sh
+++ b/get_vers.sh
@@ -5,10 +5,11 @@ top_srcdir=${1:-`pwd`}
if test -f ${top_srcdir}/VERSION; then
VERSION=`cat ${top_srcdir}/VERSION`
elif test -d ${top_srcdir}/.git; then
- VERSION=`(cd $top_srcdir; git describe)`
+ VERSION=`(cd $top_srcdir; git describe --abbrev=6 --dirty)`
fi
if test -z "$VERSION"; then
VERSION='FROM SPACE'
+fi
echo $VERSION