1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

When checking dependencies also look for portname references in Mk/*.mk

in addition to */*/Makefile* and ignore references in comments
This commit is contained in:
Vasil Dimov 2006-09-14 09:13:39 +00:00
parent f8c3647c3d
commit 800d19da74
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=173021

View File

@ -143,13 +143,13 @@ check_dep()
err=1
fi
# check if some port mentions the port to be deleted
portdir_grep="/`basename ${catport}`"
r="`find ${PORTSDIR} -mindepth 3 -maxdepth 3 -name "Makefile*" \
|xargs grep -H ${portdir_grep} \
# check if some Makefiles mention the port to be deleted
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})" || :`"
if [ -n "${r}" ] ; then
log "${catport}: some ports mention ${portdir_grep} in their Makefiles:"
log "${catport}: some Makefiles mention ${portdir_grep}:"
printf "%s\n" "${r}" >&2
err=1
fi