On OS/2, a new line consists of CR and LF.
* build-aux/git-version-gen: Remove CR as well.
---
build-aux/git-version-gen | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen
index 47d6576..77fb2ad 100755
--- a/build-aux/git-version-gen
+++ b/build-aux/git-version-gen
@@ -127,6 +127,7 @@ fi
tag_sed_script="${tag_sed_script:-s/x/x/}"
+cr=`printf '\r'`
nl='
'
@@ -215,7 +216,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"
+echo "$v" | tr -d "$cr$nl"
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
--
1.8.5.2