mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
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
This commit is contained in:
parent
a2e121b9d9
commit
1854c2ed1d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=174530
@ -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})" || :`"
|
||||
|
Loading…
Reference in New Issue
Block a user