diff options
author | Christian Pointner <equinox@spreadspace.org> | 2012-11-13 02:18:25 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2012-11-13 02:18:25 +0100 |
commit | 3ddfe999a46b42c906165fc59523d4203e13f3d1 (patch) | |
tree | a00273145128a3f0ae24cfe9f210bb4baa3dc9d4 | |
parent | added .gitignore (diff) |
updated configure to use git instead of svn
-rwxr-xr-x | src/configure | 8 |
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 |