From owner-freebsd-ports Mon Apr 26 1:53:53 1999 Delivered-To: freebsd-ports@freebsd.org Received: from rucus.ru.ac.za (rucus.ru.ac.za [146.231.29.2]) by hub.freebsd.org (Postfix) with SMTP id 6C5331505B for ; Mon, 26 Apr 1999 01:53:32 -0700 (PDT) (envelope-from nbm@rucus.ru.ac.za) Received: (qmail 31356 invoked by uid 1003); 26 Apr 1999 10:55:09 -0000 Date: Mon, 26 Apr 1999 10:55:08 +0000 From: Neil Blakey-Milner To: Maxim Sobolev Cc: ports@FreeBSD.ORG Subject: Re: Usefull script to clean /usr/ports/distfiles. Testers neded Message-ID: <19990426105508.A30028@rucus.ru.ac.za> References: <37241D4B.C9DC6FD2@altavista.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.95.1i In-Reply-To: <37241D4B.C9DC6FD2@altavista.net>; from Maxim Sobolev on Mon, Apr 26, 1999 at 11:01:15AM +0300 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon 1999-04-26 (11:01), Maxim Sobolev wrote: > I wrote small script to automate removing of "crap" from > /usr/ports/distfiles directory (i.e. remove distfiles which doesn't have > corresponding md5 entries in /usr/ports). It can be downloaded from  > http://homepages.go.com/~sobomax/distclean/distclean-0.1.tar.gz . All > patches, ideas, comments and suggestions are highly appreciated. Nice idea and work, but (as always), I have a few nits. Your use of temporary files may be a problem - if someone went and ln -s'd them to /etc/passwd, you'd have a slight problem. Also, I think using perl might be a better idea - if you don't mind, I'll convert your idea to perl and send it back to you - this way you don't have to deal with temporary files and or spawn off find, sed, &c for various function that are pretty much built into perl. In any case, good work. Neil -- Neil Blakey-Milner nbm@rucus.ru.ac.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message