git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82be413
)
r23670: Fix mkversion.sh for the git case: Only use the first line where
author
Volker Lendecke
<vlendec@samba.org>
Sun, 1 Jul 2007 19:11:40 +0000
(19:11 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:23:44 +0000
(12:23 -0500)
"commit" occurs
source/script/mkversion.sh
patch
|
blob
|
history
diff --git
a/source/script/mkversion.sh
b/source/script/mkversion.sh
index cfd6b506d490c271f3456acded5e3e0d6f7ccdb8..e87d5ba72e119e20d3e4dfdf8e829b4084a29a78 100755
(executable)
--- a/
source/script/mkversion.sh
+++ b/
source/script/mkversion.sh
@@
-107,7
+107,7
@@
if test x"${SAMBA_VERSION_IS_SVN_SNAPSHOT}" = x"yes";then
if test x"${HAVEVER}" != x"yes";then
HAVEGIT=no
GIT_INFO=`git show --abbrev-commit HEAD 2>/dev/null`
- TMP_REVISION=`echo -e "${GIT_INFO}" | grep 'commit ' |sed -e 's/commit \([0-9a-f]*\).*/\1/'`
+ TMP_REVISION=`echo -e "${GIT_INFO}" | grep 'commit ' |
sed 1q |
sed -e 's/commit \([0-9a-f]*\).*/\1/'`
if test -n "$TMP_REVISION";then
HAVEGIT=yes
HAVEVER=yes