Date: Fri, 04 Mar 2005 14:55:07 +0100 From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) To: Mike Silbersack <silby@silby.com> Cc: cvs-src@FreeBSD.org Subject: Re: cvs commit: src/share/examples/etc make.conf Message-ID: <86hdjrldms.fsf@xps.des.no> In-Reply-To: <20050304095650.GF36450@fasolt.home.paeps.cx> References: <200503020349.j223n2t8025709@repoman.freebsd.org> <20050302181242.GA64751@hellblazer.celabo.org> <20050303134339.N811@odysseus.silby.com> <20050304095650.GF36450@fasolt.home.paeps.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
--Boundary_(ID_IyHKQiJekFjEv5tUBm/meg) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable Philip Paeps <philip@FreeBSD.org> writes: > Perhaps we could modify mergemaster to do a find -mtime +1 or something to > that effect? If we can assume that mergemaster is run sometime 'soon' af= ter > an installworld? I use the attached script. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no --Boundary_(ID_IyHKQiJekFjEv5tUBm/meg) Content-type: TEXT/PLAIN; NAME=ls-old Content-transfer-encoding: 7BIT Content-disposition: attachment; filename=ls-old #!/bin/sh dirs="bin lib libexec rescue sbin" dirs="${dirs} usr/bin usr/sbin usr/lib usr/libdata usr/libexec" cd / ref=$(stat -f%m /sbin/init) find ${dirs} -type f -not -name "*.old" | grep -v "libexec/ld-elf.so.1" | while read file ; do time=$(stat -f%m "${file}") if [ $((ref - time)) -gt $((${1:-24} * 3600)) ] ; then echo "/${file}" fi done --Boundary_(ID_IyHKQiJekFjEv5tUBm/meg)--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86hdjrldms.fsf>