vc-list-files: work properly in the CVS+awk case, too
[pspp] / build-aux / vc-list-files
index 02fad61c8932618f8ca33e64a07bb59f21f354e1..5f12218d7eac3e08ac7ea58bd2bf799e1dd6c38a 100755 (executable)
@@ -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;                   \