From 1854c2ed1d8bd952e3d46e00e8296483ccf4f444 Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Thu, 5 Oct 2006 10:40:29 +0000 Subject: [PATCH] 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 --- Tools/scripts/rmport | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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})" || :`"