Mercurial > hg > octave-nkf > gnulib-hg
changeset 17813:11bf208f2615
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 | f84b5489521b |
children | f50001a9c124 |
files | ChangeLog build-aux/git-version-gen |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -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 +++ b/build-aux/git-version-gen @@ -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)