summaryrefslogtreecommitdiff
path: root/src/configure
diff options
context:
space:
mode:
Diffstat (limited to 'src/configure')
-rwxr-xr-xsrc/configure10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/configure b/src/configure
index 1435f5f..1a29ddc 100755
--- a/src/configure
+++ b/src/configure
@@ -307,11 +307,11 @@ if [ "$TARGET" != "mingw" ]; then
echo "not installing example files"
fi
- VERSION=`cat ../version`
- if which svn >/dev/null; then
- SVN_REV=`svn info 2> /dev/null | grep "^Revision: " | awk '{print($2)}'`
- if [ -n "$SVN_REV" ]; then
- VERSION="$VERSION (svn$SVN_REV)"
+VERSION=`cat ../version`
+if which git >/dev/null; then
+ GIT_HASH=`git rev-parse HEAD 2> /dev/null`
+ if [ -n "$GIT_HASH" ]; then
+ VERSION="$VERSION (git $GIT_HASH)"
fi
fi