summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2006-10-05 10:40:29 +0000
committerVasil Dimov <vd@FreeBSD.org>2006-10-05 10:40:29 +0000
commit1854c2ed1d8bd952e3d46e00e8296483ccf4f444 (patch)
tree24b768eb2bb52daf25f35bb1d78d6cccef7b7a7a /Tools
parent- Update to 1.1.1 (diff)
When checking for dependencies of foocategory/barport also find constructs
like .../barport/something e.g. expect either space, slash or eol after port's name
Notes
Notes: svn path=/head/; revision=174530
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/rmport2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/rmport b/Tools/scripts/rmport
index 10723c1a4a76..3d1a19ffe7f3 100755
--- a/Tools/scripts/rmport
+++ b/Tools/scripts/rmport
@@ -144,7 +144,7 @@ check_dep()
fi
# check if some Makefiles mention the port to be deleted
- portdir_grep="^[^#].*/`basename ${catport}`([[:space:]]+|$)"
+ portdir_grep="^[^#].*/`basename ${catport}`([[:space:]]|/|$)"
r="`find ${PORTSDIR} -mindepth 2 -maxdepth 3 \( -name "Makefile*" -or -path "*Mk/*.mk" \) \
|xargs grep -EH "${portdir_grep}" \
|grep -vE "^(${rmcatports})" || :`"