changeset 13273:27dad1e1ab9b

git-version-gen: aesthetic tweak * build-aux/git-version-gen: Use "$nl" rather than a literal, so that the command remains on a single line.
author Jim Meyering <meyering@redhat.com>
date Mon, 26 Apr 2010 18:59:46 +0200
parents c9ecff74d08f
children d87472cc6eec
files ChangeLog build-aux/git-version-gen
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-26  Jim Meyering  <meyering@redhat.com>
+
+	git-version-gen: aesthetic tweak
+	* build-aux/git-version-gen: Use "$nl" rather than a literal,
+	so that the command remains on a single line.
+
 2010-04-26  Eric Blake  <eblake@redhat.com>
 
 	git-version-gen: allow use on EBCDIC hosts
--- a/build-aux/git-version-gen
+++ b/build-aux/git-version-gen
@@ -1,6 +1,6 @@
 #!/bin/sh
 # Print a version string.
-scriptversion=2010-04-26.15; # UTC
+scriptversion=2010-04-26.16; # UTC
 
 # Copyright (C) 2007-2010 Free Software Foundation, Inc.
 #
@@ -140,8 +140,7 @@
 esac
 
 # Omit the trailing newline, so that m4_esyscmd can use the result directly.
-echo "$v" | tr -d '
-'
+echo "$v" | tr -d "$nl"
 
 # Local variables:
 # eval: (add-hook 'write-file-hooks 'time-stamp)