fix generation of git revision calculation
authormetze <metze@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Fri, 28 Sep 2007 23:39:32 +0000 (23:39 +0000)
committermetze <metze@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Fri, 28 Sep 2007 23:39:32 +0000 (23:39 +0000)
metze

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@25418 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/script/mkversion.sh

index 8155c45..ac4064e 100755 (executable)
@@ -107,7 +107,7 @@ if test x"${SAMBA_VERSION_IS_SVN_SNAPSHOT}" = x"yes";then
     if test x"${HAVEVER}" != x"yes" -a -d "${SOURCE_DIR}../.git";then
        HAVEGIT=no
         GIT_INFO=`git show --abbrev-commit HEAD 2>/dev/null`
-       TMP_REVISION=`echo -e "${GIT_INFO}" | grep 'commit ' | sed 1q |sed -e 's/commit \([0-9a-f]*\).*/\1/'`
+       TMP_REVISION=`echo -e "${GIT_INFO}" | sed 1q | grep 'commit ' | sed -e 's/commit \([0-9a-f]*\).*/\1/'`
        if test -n "$TMP_REVISION";then
            HAVEGIT=yes
             HAVEVER=yes