diff options
author | Eric Blake <ebb9@byu.net> | 2009-04-25 07:15:12 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-04-25 07:20:35 -0600 |
commit | 496fee86d6ccab0e07f1c83a5cf880f16a6bff11 (patch) | |
tree | aa198bbfae559e23160239f4373b7040c4cc7004 /build-aux/vc-list-files | |
parent | c335e0ec67853b066fae56f6c61b0dbde4c71d74 (diff) | |
download | gnulib-496fee86d6ccab0e07f1c83a5cf880f16a6bff11.tar.gz |
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>
Diffstat (limited to 'build-aux/vc-list-files')
-rwxr-xr-x | build-aux/vc-list-files | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/build-aux/vc-list-files b/build-aux/vc-list-files index 88d513f5a5..08dc8ab2f4 100755 --- a/build-aux/vc-list-files +++ b/build-aux/vc-list-files @@ -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 @@ if test -d .git; then # 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 @@ fi # 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: |