autoconf-patches
[Top][All Lists]
Advanced

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

[PATCH 4/4] git-version-gen: remove cr as well


From: KO Myung-Hun
Subject: [PATCH 4/4] git-version-gen: remove cr as well
Date: Mon, 22 Sep 2014 15:59:53 +0900

* build-aux/git-version-gen: Subject.
---
 build-aux/git-version-gen |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen
index 3468247..f04b31f 100755
--- a/build-aux/git-version-gen
+++ b/build-aux/git-version-gen
@@ -126,6 +126,7 @@ fi
 
 tag_sed_script="${tag_sed_script:-s/x/x/}"
 
+cr='
'
 nl='
 '
 
@@ -214,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"
+echo "$v" | tr -d "$cr$nl"
 
 # Local variables:
 # eval: (add-hook 'write-file-hooks 'time-stamp)
-- 
1.7.3.2




reply via email to

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