summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-06-25 19:14:34 +0200
committerStefan Metzmacher <metze@samba.org>2008-06-27 09:22:21 +0200
commit06d38e58e8732b50ffbf22f9694d92801162744b (patch)
tree19aa772264b723306fc7f60bec3e1134c75999e4 /source4
parent7ca0386d0b9937ed7142027092302a4b98400e1a (diff)
downloadsamba-06d38e58e8732b50ffbf22f9694d92801162744b.tar.gz
samba-06d38e58e8732b50ffbf22f9694d92801162744b.tar.bz2
samba-06d38e58e8732b50ffbf22f9694d92801162744b.zip
mkversion.sh: printf %s is more portable than echo -e
metze (This used to be commit 274ae4b06a3d2e99ee4fd7f04430d361d500d451)
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/script/mkversion.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/script/mkversion.sh b/source4/script/mkversion.sh
index b6d82f8797..da912ac092 100755
--- a/source4/script/mkversion.sh
+++ b/source4/script/mkversion.sh
@@ -77,10 +77,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