summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2012-11-13 01:18:25 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2012-11-13 01:18:25 (GMT)
commit3ddfe999a46b42c906165fc59523d4203e13f3d1 (patch)
treea00273145128a3f0ae24cfe9f210bb4baa3dc9d4
parent606fc8c666f7033048d6673c18a39113ebcd68e2 (diff)
updated configure to use git instead of svn
-rwxr-xr-xsrc/configure8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/configure b/src/configure
index 3914078..c495453 100755
--- a/src/configure
+++ b/src/configure
@@ -267,10 +267,10 @@ if [ "$TARGET" != "mingw" ]; then
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)"
+ 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