vc-list-files: work properly with build-aux/cvsu, too
authorJim Meyering <meyering@redhat.com>
Wed, 30 Apr 2008 10:17:13 +0000 (12:17 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 30 Apr 2008 10:17:13 +0000 (12:17 +0200)
* build-aux/vc-list-files: Hoist the "./"-removing code to apply
to all cvs-based clauses.

ChangeLog
build-aux/vc-list-files

index 22119161d4911cfcece9669d6d3d61cdc1519cb8..54d88c5cee76b85cbe50641491f2937ced035fc2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-04-30  Jim Meyering  <meyering@redhat.com>
 
+       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.
 
index 5f12218d7eac3e08ac7ea58bd2bf799e1dd6c38a..63b403a1164a51b34c9b80f2f3e3e67f9b0c7cad 100755 (executable)
@@ -76,12 +76,12 @@ if test -d .git; then
 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;                   \