summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-09-28 23:39:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:31:04 -0500
commit4802b2d6ca375723ecae12d6940efa6186520e79 (patch)
tree3e740467ad178bed1201ed7d35a3014becfb3a56
parent6334c7cc5f686a6c13063190986914482f54784f (diff)
downloadsamba-4802b2d6ca375723ecae12d6940efa6186520e79.tar.gz
samba-4802b2d6ca375723ecae12d6940efa6186520e79.tar.bz2
samba-4802b2d6ca375723ecae12d6940efa6186520e79.zip
r25418: fix generation of git revision calculation
metze (This used to be commit 43df4928ecd61ae071109abb1c72dfd1b78a5a5e)
-rwxr-xr-xsource3/script/mkversion.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/script/mkversion.sh b/source3/script/mkversion.sh
index 8155c45212..ac4064ea29 100755
--- a/source3/script/mkversion.sh
+++ b/source3/script/mkversion.sh
@@ -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