vc-list-files: don't cause coreutils "make po-check" failure
authorJim Meyering <meyering@redhat.com>
Thu, 3 Apr 2008 16:23:40 +0000 (18:23 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 3 Apr 2008 16:23:40 +0000 (18:23 +0200)
* build-aux/vc-list-files: Skip postprocessing when $2 is '.'

ChangeLog
build-aux/vc-list-files

index 90d0bb2..efd850e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-03  Jim Meyering  <meyering@redhat.com>
+
+       vc-list-files: don't cause coreutils "make po-check" failure
+       * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
+
 2008-04-03  Eric Blake  <ebb9@byu.net>
 
        Allow VPATH usage of vc-list-files.
index 35046d5..762d7ee 100755 (executable)
@@ -2,7 +2,7 @@
 # List version-controlled file names.
 
 # Print a version string.
-scriptversion=2008-04-03.14
+scriptversion=2008-04-03.17
 
 # Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
@@ -56,7 +56,7 @@ EOF
     exit ;;
 
   -C)
-    postprocess="| sed 's|^|$2/|'"
+    test "$2" = . || postprocess="| sed 's|^|$2/|'"
     cd "$2" || exit 1
     shift; shift ;;
 esac