changeset 31195:d59267c32211

vc-list-files: fix shell quoting error * build-aux/vc-list-files: Protect against $ in $dir. Normalize timestamp. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Sat, 25 Apr 2009 07:15:12 -0600
parents c772f6ff4d14
children 0ac998d8d8c3
files ChangeLog build-aux/vc-list-files
diffstat 2 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Apr 25 10:23:53 2009 +0200
+++ b/ChangeLog	Sat Apr 25 07:15:12 2009 -0600
@@ -1,3 +1,9 @@
+2009-04-25  Eric Blake  <ebb9@byu.net>
+
+	vc-list-files: fix shell quoting error
+	* build-aux/vc-list-files: Protect against $ in $dir.  Normalize
+	timestamp.
+
 2009-04-25  Jim Meyering  <meyering@redhat.com>
 
 	vc-list-files: restore lost functionality with subdir argument
--- a/build-aux/vc-list-files	Sat Apr 25 10:23:53 2009 +0200
+++ b/build-aux/vc-list-files	Sat Apr 25 07:15:12 2009 -0600
@@ -2,7 +2,7 @@
 # List version-controlled file names.
 
 # Print a version string.
-scriptversion=2009-04-25.10
+scriptversion=2009-04-25.13; # UTC
 
 # Copyright (C) 2006-2009 Free Software Foundation, Inc.
 
@@ -78,7 +78,7 @@
   # else (often into a submodule), in which case the content does not
   # belong to this package.
   eval exec git ls-tree -r 'HEAD:"$dir"' \
-    \| sed -n '"s!^100[^	]*.!'"$dir"'!p"' $postprocess
+    \| sed -n '"s!^100[^	]*.!$dir!p"' $postprocess
 elif test -d .hg; then
   eval exec hg locate '"$dir/*"' $postprocess
 elif test -d .bzr; then
@@ -109,5 +109,6 @@
 # eval: (add-hook 'write-file-hooks 'time-stamp)
 # time-stamp-start: "scriptversion="
 # time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-end: "$"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
 # End: