summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-04-03 18:23:40 +0200
committerJim Meyering <meyering@redhat.com>2008-04-03 18:23:40 +0200
commit6b91f83ce845346872d40a6cd58769d25cc65b53 (patch)
treebb9072ce20ea5f2de57f2cf4bf6df5eab5801362
parent562bd0a0f75b014c38b6ff0a712331270d8770bc (diff)
downloadgnulib-6b91f83ce845346872d40a6cd58769d25cc65b53.tar.gz
vc-list-files: don't cause coreutils "make po-check" failure
* build-aux/vc-list-files: Skip postprocessing when $2 is '.'
-rw-r--r--ChangeLog5
-rwxr-xr-xbuild-aux/vc-list-files4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 90d0bb2e3f..efd850e3c8 100644
--- 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.
diff --git a/build-aux/vc-list-files b/build-aux/vc-list-files
index 35046d5878..762d7eeb36 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-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