From fbeab78220c6f08c80040a5a331e18c9d630e504 Mon Sep 17 00:00:00 2001 From: ler Date: Sun, 30 Apr 2017 17:45:31 +0000 Subject: Update Tools/scripts/rmport to ignore commented out EXPIRATION_DATE lines Reviewed by: crees (maintainer) Approved by: rene (portmgr, mentor), adamw (portmgr, mentor), crees (maintainer) Differential Revision: https://reviews.freebsd.org/D10548 --- Tools/scripts/rmport | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Tools') diff --git a/Tools/scripts/rmport b/Tools/scripts/rmport index 92e4f2cb6376..8da23c47071d 100755 --- a/Tools/scripts/rmport +++ b/Tools/scripts/rmport @@ -109,7 +109,7 @@ find_expired() EXPVAR=EXPIRATION_DATE find -H ${PORTSDIR} -mindepth 3 -maxdepth 3 -name "Makefile*" \ - |xargs grep -H ${EXPVAR} \ + |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(\$_); }" \ |while read expdate catport ; do \ -- cgit