From cb7f964b745f540672f26fb060006640743a4ea2 Mon Sep 17 00:00:00 2001 From: vd Date: Thu, 2 Nov 2006 09:20:10 +0000 Subject: Add deprecated reason to the output of -F --- Tools/scripts/rmport | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Tools/scripts') diff --git a/Tools/scripts/rmport b/Tools/scripts/rmport index 680e46dc2f4f..8f9961e1893d 100755 --- a/Tools/scripts/rmport +++ b/Tools/scripts/rmport @@ -92,7 +92,11 @@ find_expired() find ${PORTSDIR} -mindepth 3 -maxdepth 3 -name "Makefile*" \ |xargs grep -H ${EXPVAR} \ |sed -E "s|${PORTSDIR}/?([^/]+/[^/]+)/Makefile:${EXPVAR}=[[:space:]]*([0-9-]{10})$|\2 \1|g" \ - |perl -ne "if ((substr(\$_, 0, 10) cmp '${TODAY}') <= 0) { print(\$_); }" + |perl -ne "if ((substr(\$_, 0, 10) cmp '${TODAY}') <= 0) { print(\$_); }" \ + |while read expdate catport ; do \ + echo -n "${expdate} ${catport}: " ; \ + make -C ${PORTSDIR}/${catport} -V DEPRECATED ; \ + done } # create temporary checkout directory @@ -380,7 +384,7 @@ if [ ${1} = "-a" ] ; then if [ ${#} -ne 1 ] ; then usage fi - ${0} `find_expired |cut -f 2 -d ' '` + ${0} `find_expired |cut -f 2 -d ' ' |cut -f 1 -d :` exit fi -- cgit