From: Jim Meyering Date: Wed, 30 Apr 2008 10:10:09 +0000 (+0200) Subject: vc-list-files: work properly in the CVS+awk case, too X-Git-Tag: v0.1~7449 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=46c886a39065b3f954ccbc90bc43b7bf468e5664;p=gnulib.git vc-list-files: work properly in the CVS+awk case, too * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix. --- diff --git a/ChangeLog b/ChangeLog index b1a8c4823..22119161d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2008-04-30 Jim Meyering + vc-list-files: work properly in the CVS+awk case, too + * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix. + vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer take more than one file argument, so . Add quotes, just in case $dir diff --git a/build-aux/vc-list-files b/build-aux/vc-list-files index 02fad61c8..5f12218d7 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=2008-04-30.11 +scriptversion=2008-04-30.12 # Copyright (C) 2006-2008 Free Software Foundation, Inc. @@ -81,6 +81,7 @@ elif test -d CVS; then elif (cvsu --help) >/dev/null 2>&1; then eval cvsu --find --types=AFGM '"$dir"' $postprocess else + test "$postprocess" = '' && postprocess="| sed 's|^\./||'" eval awk -F/ \''{ \ if (!$1 && $3 !~ /^-/) { \ f=FILENAME; \