From 8d2fc95d175f1778ccac0a9ff84e552abb0ddcc3 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 25 Jan 2016 21:59:29 +0100 Subject: git-version-gen: Do not use `echo -n` `echo -n` is non-portable and does not work under some operating systems, such as OS X. Replace it with printf. Signed-off-by: Lukas Fleischer --- build-aux/git-version-gen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen index e9e90b9..6ef7760 100755 --- a/build-aux/git-version-gen +++ b/build-aux/git-version-gen @@ -13,7 +13,7 @@ then git update-index --refresh > /dev/null 2>&1 VERSION=`git describe --abbrev=4 --match='v[0-9]*' --dirty 2>/dev/null` VERSION=`echo "$VERSION" | sed 's/^v//'` - [ -n "$VERSION" ] && echo -n "$VERSION" > "$VERFILE" + [ -n "$VERSION" ] && printf "%s" "$VERSION" > "$VERFILE" fi if [ -f "$VERFILE" ] -- cgit v1.2.3