svn commit: r439833 - head/Tools/scripts
Larry Rosenman
ler at FreeBSD.org
Sun Apr 30 17:45:32 UTC 2017
Author: ler
Date: Sun Apr 30 17:45:31 2017
New Revision: 439833
URL: https://svnweb.freebsd.org/changeset/ports/439833
Log:
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
Modified:
head/Tools/scripts/rmport
Modified: head/Tools/scripts/rmport
==============================================================================
--- head/Tools/scripts/rmport Sun Apr 30 17:11:56 2017 (r439832)
+++ head/Tools/scripts/rmport Sun Apr 30 17:45:31 2017 (r439833)
@@ -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 \
More information about the svn-ports-head
mailing list