Mercurial > gnulib
changeset 37493:73a46cb0a29e
git-version-gen: do not print new line characters
On platforms with CRLF endings (such as OS/2), use of 'echo' may
leave behind an unwanted CR.
* build-aux/git-version-gen: Use printf instead of echo and tr.
Signed-off-by: Eric Blake <eblake@redhat.com>
author | KO Myung-Hun <komh78@gmail.com> |
---|---|
date | Tue, 02 Dec 2014 14:55:20 +0900 |
parents | 27eff69becc8 |
children | 136f58f21711 |
files | ChangeLog build-aux/git-version-gen |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Dec 02 12:50:49 2014 +0900 +++ b/ChangeLog Tue Dec 02 14:55:20 2014 +0900 @@ -1,5 +1,8 @@ 2014-12-02 KO Myung-Hun <komh78@gmail.com> + git-version-gen: do not print new line characters + * build-aux/git-version-gen: Use printf instead of echo and tr. + gnulib-tool: recognize x:* as an absolute path * gnulib-tool (func_gnulib_dir): Add ?:* case. (func_relconcat): Likewise.
--- a/build-aux/git-version-gen Tue Dec 02 12:50:49 2014 +0900 +++ b/build-aux/git-version-gen Tue Dec 02 14:55:20 2014 +0900 @@ -1,6 +1,6 @@ #!/bin/sh # Print a version string. -scriptversion=2014-06-19.19; # UTC +scriptversion=2014-12-02.19; # UTC # Copyright (C) 2007-2014 Free Software Foundation, Inc. # @@ -215,7 +215,7 @@ fi # Omit the trailing newline, so that m4_esyscmd can use the result directly. -echo "$v" | tr -d "$nl" +printf %s "$v" # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp)