diff options
author | Christian Pointner <equinox@spreadspace.org> | 2015-01-29 07:24:51 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2015-01-29 07:24:51 (GMT) |
commit | 4a6baf5a2b3cf7db0f3f41d0d61f8fc2334201cc (patch) | |
tree | 7b28d97d061b48e8cd28446c20a1a30a56207ccc /src/configure | |
parent | 0e16b63aafea8475a35447f94e2d79b1601f02c5 (diff) |
set .gitingore and updated Repo in Readme and configure
Diffstat (limited to 'src/configure')
-rwxr-xr-x | src/configure | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/configure b/src/configure index e953737..29556e6 100755 --- a/src/configure +++ b/src/configure @@ -154,10 +154,10 @@ else 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 |