aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-01-25 21:59:29 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-01-25 21:59:29 +0100
commit8d2fc95d175f1778ccac0a9ff84e552abb0ddcc3 (patch)
tree96adb1d5228f968e47ad1306467082a85fbca401
parentbfafec3ebf07f12f01f4f940e7048ff0d9444e5b (diff)
downloadcalcurse-8d2fc95d175f1778ccac0a9ff84e552abb0ddcc3.tar.gz
calcurse-8d2fc95d175f1778ccac0a9ff84e552abb0ddcc3.zip
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 <lfleischer@calcurse.org>
-rwxr-xr-xbuild-aux/git-version-gen2
1 files changed, 1 insertions, 1 deletions
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" ]