summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-01 15:54:34 +0200
committerMichael Adam <obnox@samba.org>2008-04-01 16:16:55 +0200
commit36ade6136da79b48aab5d54ba04edbc2c3bc48bb (patch)
tree9e81fa7e0f1fae305585b67bdda08be9279f5778 /source3
parent808378cda2e35ed01074b8caba89691e4be35f0b (diff)
downloadsamba-36ade6136da79b48aab5d54ba04edbc2c3bc48bb.tar.gz
samba-36ade6136da79b48aab5d54ba04edbc2c3bc48bb.tar.bz2
samba-36ade6136da79b48aab5d54ba04edbc2c3bc48bb.zip
mkversion: be more portable, use 'print "%s"' instead of 'echo -n'
Michael (This used to be commit 7a23dab1eaf3116079a89cdf348cabc659608031)
Diffstat (limited to 'source3')
-rwxr-xr-xsource3/script/mkversion.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/script/mkversion.sh b/source3/script/mkversion.sh
index 877138f977..b678476976 100755
--- a/source3/script/mkversion.sh
+++ b/source3/script/mkversion.sh
@@ -73,10 +73,10 @@ if test x"${SAMBA_VERSION_IS_GIT_SNAPSHOT}" = x"yes";then
if test x"${HAVEVER}" != x"yes" -a -d "${SOURCE_DIR}../.git";then
HAVEGIT=no
GIT_INFO=`git show --pretty=format:"%h%n%ct%n%H%n%cd" --stat HEAD 2>/dev/null`
- GIT_COMMIT_ABBREV=`echo -e "${GIT_INFO}" | sed -n 1p`
- GIT_COMMIT_TIME=`echo -e "${GIT_INFO}" | sed -n 2p`
- GIT_COMMIT_FULLREV=`echo -e "${GIT_INFO}" | sed -n 3p`
- GIT_COMMIT_DATE=`echo -e "${GIT_INFO}" | sed -n 4p`
+ GIT_COMMIT_ABBREV=`printf "%s" "${GIT_INFO}" | sed -n 1p`
+ GIT_COMMIT_TIME=`printf "%s" "${GIT_INFO}" | sed -n 2p`
+ GIT_COMMIT_FULLREV=`printf "%s" "${GIT_INFO}" | sed -n 3p`
+ GIT_COMMIT_DATE=`printf "%s" "${GIT_INFO}" | sed -n 4p`
if test -n "${GIT_COMMIT_ABBREV}";then
HAVEGIT=yes
HAVEVER=yes