diff options
author | vd <vd@FreeBSD.org> | 2006-10-05 10:40:29 +0000 |
---|---|---|
committer | vd <vd@FreeBSD.org> | 2006-10-05 10:40:29 +0000 |
commit | 169fb2cbad392103b1ca0289644983b4d736f382 (patch) | |
tree | c82bbc6a1dba6ab6a9ede93c6a256ab2c703baa5 /Tools/scripts | |
parent | 0b58a039444accb35b090333b6244fefcabf7be9 (diff) | |
download | FreeBSD-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-x | Tools/scripts/rmport | 2 |
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})" || :`" |