aboutsummaryrefslogtreecommitdiff
path: root/Tools/scripts/rmport
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2006-05-02 09:16:10 +0000
committerVasil Dimov <vd@FreeBSD.org>2006-05-02 09:16:10 +0000
commit8529c41f37233aebae098a6dfbcd99cd37c25342 (patch)
tree074a4e5ea26aeeb3c7dcfb9f8d2fd410add2052e /Tools/scripts/rmport
parentb7ca3be57f77f3482195a282e22405f042360792 (diff)
downloadports-8529c41f37233aebae098a6dfbcd99cd37c25342.tar.gz
ports-8529c41f37233aebae098a6dfbcd99cd37c25342.zip
Notes
Diffstat (limited to 'Tools/scripts/rmport')
-rwxr-xr-xTools/scripts/rmport5
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