bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 03/21] git-version-gen: remove CR as well


From: KO Myung-Hun
Subject: [PATCH 03/21] git-version-gen: remove CR as well
Date: Sun, 30 Nov 2014 13:20:05 +0900

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]