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

KO Myung-Hun <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.patches
Message-ID <[email protected]>
* 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.