Date: Fri, 27 May 2005 21:38:32 +1000 From: Edwin Groothuis <edwin@mavetju.org> To: Matt Mills <matt_mills@btopenworld.com> Cc: ports@freebsd.org Subject: Re: /usr/ports/distfiles maintenance Message-ID: <20050527113832.GQ1175@k7.mavetju> In-Reply-To: <42970476.6050105@btopenworld.com> References: <42970476.6050105@btopenworld.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 27, 2005 at 12:28:54PM +0100, Matt Mills wrote: > Basically, my question is: is there some piece of software or automated > way of keeping the directory clean of stale sources? I can imagine > obvious problems with automating the process due to different versions > of the same software in separate ports (eg. autoconf, automake, libtool, > etc.) I would say, that the output of grep MD5 */*/distinfo | awk '{ print $2 }' | sed -e 's/[()]//g' would give a nice list of files which are current. Then diffing it against the output of: find distfiles -type f | sed -e 's/distfiles.//' and deleting the ones which show up as "in the distfiles directory". Of course there might be something in the ports tree for this. Oh, and it kind of sucks too that */*/distinfo gives an "argument list too long" :-) Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050527113832.GQ1175>