Commit e5a15adc authored by KO Myung-Hun's avatar KO Myung-Hun Committed by Eric Blake

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: default avatarEric Blake <eblake@redhat.com>
parent 9a98fdfe
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.
#!/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 @@ 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"
printf %s "$v"
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment