# 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 !~ /^-/) { \