# HG changeset patch # User Jim Meyering # Date 1209550633 -7200 # Node ID ad7bcfbe99555c369c165334207906548d6e2b02 # Parent 4b9a2be810af82217a333252211bdfce8f474151 vc-list-files: work properly with build-aux/cvsu, too * build-aux/vc-list-files: Hoist the "./"-removing code to apply to all cvs-based clauses. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-04-30 Jim Meyering + vc-list-files: work properly with build-aux/cvsu, too + * build-aux/vc-list-files: Hoist the "./"-removing code to apply + to all cvs-based clauses. + 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/build-aux/vc-list-files b/build-aux/vc-list-files --- a/build-aux/vc-list-files +++ b/build-aux/vc-list-files @@ -76,12 +76,12 @@ elif test -d .hg; then eval exec hg locate '"$dir/*"' $postprocess elif test -d CVS; then + test "$postprocess" = '' && postprocess="| sed 's|^\./||'" if test -x build-aux/cvsu; then eval build-aux/cvsu --find --types=AFGM '"$dir"' $postprocess 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; \