diff options
author | Jim Meyering <jim@meyering.net> | 2006-07-19 09:54:28 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-07-19 09:54:28 +0000 |
commit | 6f91fb9595da7120d48cf50865ddf0ad13066292 (patch) | |
tree | 97be32c6a177a9945f9ab717a4a6ca3c28b9ba4d /build-aux/vc-list-files | |
parent | 76d82ec5cc98d6a46d52bea372a6c8e585b96f02 (diff) | |
download | coreutils-6f91fb9595da7120d48cf50865ddf0ad13066292.tar.xz |
Command line args correspond to an "include" list, not an exclude list.
Diffstat (limited to 'build-aux/vc-list-files')
-rwxr-xr-x | build-aux/vc-list-files | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/build-aux/vc-list-files b/build-aux/vc-list-files index b5f0e86a4..b952466e0 100755 --- a/build-aux/vc-list-files +++ b/build-aux/vc-list-files @@ -5,24 +5,24 @@ # If there's an argument, it must be a single, "."-relative directory name, # with no trailing slashes. In mercurial mode, it's used as part of a -# "grep -v" pattern (prepend "^", append "/"), and in cvs mode, it's simply +# "grep" pattern (prepend "^", append "/"), and in cvs mode, it's simply # used as an argument to the cvsu script. -exclude_prefix= +include_prefix= case $# in 0) ;; - 1) exclude_prefix=$1 ;; + 1) include_prefix=$1 ;; *) echo "$0: too many arguments" 1>&2; exit 1 ;; esac if test -d .hg; then - if test "x$exclude_prefix" = x; then + if test "x$include_prefix" = x; then hg manifest | cut -d ' ' -f 3 else - hg manifest | cut -d ' ' -f 3 | grep -v "^$exclude_prefix/" + hg manifest | cut -d ' ' -f 3 | grep "^$include_prefix/" fi elif test -x build-aux/cvsu; then - build-aux/cvsu --find --types=AFGM $exclude_prefix + build-aux/cvsu --find --types=AFGM $include_prefix else awk -F/ '{ \ if (!$1 && $3 !~ /^-/) { \ |