From owner-freebsd-current@FreeBSD.ORG Fri Jun 30 07:49:59 2006 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87AEC16A514 for ; Fri, 30 Jun 2006 07:49:59 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from sippysoft.com (gk.360sip.com [72.236.70.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3A9644401 for ; Fri, 30 Jun 2006 07:28:25 +0000 (GMT) (envelope-from sobomax@FreeBSD.org) Received: from [192.168.0.92] ([204.244.149.125]) (authenticated bits=0) by sippysoft.com (8.13.6/8.13.6) with ESMTP id k5U7SMVf056149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 30 Jun 2006 00:28:23 -0700 (PDT) (envelope-from sobomax@FreeBSD.org) Message-ID: <44A4D28D.6090305@FreeBSD.org> Date: Fri, 30 Jun 2006 00:28:13 -0700 From: Maxim Sobolev Organization: Sippy Software, Inc. User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: MonkeyBrains References: <44A4CBE1.9060205@MonkeyBrains.NET> In-Reply-To: <44A4CBE1.9060205@MonkeyBrains.NET> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org Subject: Re: one liner to clean up your /usr/ports/distfiles X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2006 07:49:59 -0000 That's why we have ports/Tools/scripts/distclean.sh for 5 years now. -Maxim MonkeyBrains wrote: > > Ever notice your /usr/ports/distfiles bloats after several years of > updating the same box? > You know those 5 year old drives are about to fail, but, if you want to > clean them up a bit, I like this: > > cd /usr/ports/distfiles > perl -e 'while (<*>) { chomp(); $p = $_; $p =~ s/\-\d+\..*// or next; > unlink $X if $X =~ /^$p/; $X = $_;}' > > Removes the lower version number of 'double' source files, like these: > -rw-r--r-- 1 root wheel 1282627 Sep 12 2005 tiff-3.7.4.tar.gz > -rw-r--r-- 1 root wheel 1336295 Mar 23 07:15 tiff-3.8.2.tar.gz > > Rudy > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > >