[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
- [PATCH] OS/2 patches, KO Myung-Hun, 2014/11/30
- [PATCH 01/21] gnulib-tool: disable a symbolic link on OS/2, KO Myung-Hun, 2014/11/30
- [PATCH 03/21] git-version-gen: remove CR as well,
KO Myung-Hun <=
- [PATCH 02/21] gnulib-tool: recognize x:* as an absolute path, KO Myung-Hun, 2014/11/30
- [PATCH 04/21] stdint: typedef gl_intptr_t and gl_uintptr_t correctly on OS/2 kLIBC, KO Myung-Hun, 2014/11/30
- [PATCH 05/21] spawn: do not include sched.h on OS/2 kLIBC, KO Myung-Hun, 2014/11/30
- [PATCH 06/21] Fix character encoding aliases for OS/2, KO Myung-Hun, 2014/11/30
- [PATCH 07/21] find_executable: port to EMX, KO Myung-Hun, 2014/11/30