removed some debugs
[citadel.git] / citadel / scripts / mk_svn_revision.sh
index a325bf3348df67208bc12c6528dfa71f543e84f3..9a68d27bdcad44fe08ab4c39e8c421e9341af427 100755 (executable)
@@ -12,7 +12,6 @@ CUR_DIR=`pwd`
 C_FILE="$CUR_DIR/svn_revision.c"
 H_FILE="$CUR_DIR/svn_revision.h"
 
-
 # determine if this code base came from subversion.
 if test -d $SRC_DIR/.svn  ; then
        echo "have subversion repository"
@@ -24,9 +23,9 @@ if test -d $SRC_DIR/.svn  ; then
                CAN_BUILD_SVN_REVISION="yes"
        fi
 else 
-    if test -d $SRC_DIR/../.svn  ; then
+    if test -d $SRC_DIR/../.git  ; then
        echo "have Git repository."
-       BUILD=`/usr/bin/git log -1 --pretty=%H . `
+       BUILD=`/usr/bin/env git log -1 --pretty=%h . `
        echo "This code base git-revision: $BUILD"
        CAN_BUILD_SVN_REVISION="yes"
     else
@@ -71,7 +70,7 @@ cat <<EOF > $C_FILE
  
 const char *svn_revision (void)
 {
-       const char *SVN_Version = "**UNKNOWN** Built from source without svn and no $C_FILE accompanying";
+       const char *SVN_Version = "(unknown)";
        return SVN_Version;
 }
 EOF