diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2006-05-02 09:16:10 +0000 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2006-05-02 09:16:10 +0000 |
commit | 8529c41f37233aebae098a6dfbcd99cd37c25342 (patch) | |
tree | 074a4e5ea26aeeb3c7dcfb9f8d2fd410add2052e /Tools/scripts/rmport | |
parent | It is suitable for the scraping of a popular bbs of Japan. (diff) |
Improve dependency check:
When removing category/port - look if other ports' Makefiles contain
`/port' rather than `category/port', since the later misses things
like `${.CURDIR}/../port'
Notes
Notes:
svn path=/head/; revision=161174
Diffstat (limited to 'Tools/scripts/rmport')
-rwxr-xr-x | Tools/scripts/rmport | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Tools/scripts/rmport b/Tools/scripts/rmport index 5571a7e9c53f..7013cacebb1e 100755 --- a/Tools/scripts/rmport +++ b/Tools/scripts/rmport @@ -113,11 +113,12 @@ check_dep() 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 -Hw ${catport} \ + |xargs grep -Hw ${portdir_grep} \ |grep -vE "^(${rmcatports})" || :`" if [ -n "${r}" ] ; then - log "${catport}: some ports mention ${catport} in their Makefiles:" + log "${catport}: some ports mention ${portdir_grep} in their Makefiles:" printf "%s\n" "${r}" >&2 err=1 fi |