From c0878d54cfea06e95ecad4e62346fd56a60bff9d Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 24 Feb 2016 22:17:54 +0100 Subject: updated doc and other stuff after moving to GIT --- src/configure | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/configure') diff --git a/src/configure b/src/configure index 4b890a0..3b7b1b4 100755 --- a/src/configure +++ b/src/configure @@ -263,12 +263,13 @@ 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)" - fi +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 + HOSTNAME=`hostname` DATE=`date +"%d.%m.%Y %H:%M:%S %Z"` -- cgit v1.2.3