summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorvd <vd@FreeBSD.org>2006-10-05 10:40:29 +0000
committervd <vd@FreeBSD.org>2006-10-05 10:40:29 +0000
commit169fb2cbad392103b1ca0289644983b4d736f382 (patch)
treec82bbc6a1dba6ab6a9ede93c6a256ab2c703baa5 /Tools/scripts
parent0b58a039444accb35b090333b6244fefcabf7be9 (diff)
downloadFreeBSD-ports-169fb2cbad392103b1ca0289644983b4d736f382.zip
FreeBSD-ports-169fb2cbad392103b1ca0289644983b4d736f382.tar.gz
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
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/rmport2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/rmport b/Tools/scripts/rmport
index 10723c1..3d1a19f 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})" || :`"
OpenPOWER on IntegriCloud