summaryrefslogtreecommitdiff
path: root/build-aux/git-version-gen
diff options
context:
space:
mode:
authorKO Myung-Hun <komh78@gmail.com>2014-12-02 14:55:20 +0900
committerEric Blake <eblake@redhat.com>2014-12-02 12:38:14 -0700
commite5a15adc6db466ae9d7ea5d892f78e0390d032d0 (patch)
treef60d110dbf55b7a6d21eb9954f9d1e608563adb8 /build-aux/git-version-gen
parent9a98fdfef2dfcaf855b5bcba873ada3798a2e89c (diff)
downloadgnulib-e5a15adc6db466ae9d7ea5d892f78e0390d032d0.tar.gz
git-version-gen: do not print new line characters
On platforms with CRLF endings (such as OS/2), use of 'echo' may leave behind an unwanted CR. * build-aux/git-version-gen: Use printf instead of echo and tr. Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'build-aux/git-version-gen')
-rwxr-xr-xbuild-aux/git-version-gen4
1 files changed, 2 insertions, 2 deletions
diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen
index 47d657674d..48769baa1f 100755
--- a/build-aux/git-version-gen
+++ b/build-aux/git-version-gen
@@ -1,6 +1,6 @@
#!/bin/sh
# Print a version string.
-scriptversion=2014-06-19.19; # UTC
+scriptversion=2014-12-02.19; # UTC
# Copyright (C) 2007-2014 Free Software Foundation, Inc.
#
@@ -215,7 +215,7 @@ if test "x$v_from_git" != x; then
fi
# Omit the trailing newline, so that m4_esyscmd can use the result directly.
-echo "$v" | tr -d "$nl"
+printf %s "$v"
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)