From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 26 23:03:30 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EE2D16A4E5 for ; Sat, 26 Aug 2006 23:03:30 +0000 (UTC) (envelope-from erdgeist@erdgeist.org) Received: from elektropost.org (elektropost.org [80.237.196.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 744F543DB6 for ; Sat, 26 Aug 2006 23:03:19 +0000 (GMT) (envelope-from erdgeist@erdgeist.org) Received: (qmail 86993 invoked by uid 0); 26 Aug 2006 23:04:15 -0000 Received: from fuckup.club.berlin.ccc.de (HELO ?23.23.23.91?) (erdgeist@erdgeist.org@195.160.172.2) by elektropost.org with AES256-SHA encrypted SMTP; 26 Aug 2006 23:04:15 -0000 Message-ID: <44F0D335.4030604@erdgeist.org> Date: Sun, 27 Aug 2006 01:03:17 +0200 From: Dirk Engling User-Agent: Thunderbird 1.5.0.5 (Macintosh/20060719) MIME-Version: 1.0 To: rick-freebsd@kiwi-computer.com References: <200608261919.07106.mlobo@digiart.art.br> <20060826225350.GA20172@megan.kiwi-computer.com> In-Reply-To: <20060826225350.GA20172@megan.kiwi-computer.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Mario Lobo Subject: Re: A handy utility (at least for me) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Aug 2006 23:03:30 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rick C. Petty wrote: > On Sat, Aug 26, 2006 at 07:19:06PM -0300, Mario Lobo wrote: >> My /usr/ports directory was occuping 24 gigs, of which 20 was just from the >> 'work' directories ! >> >> Removing them one by one was a pain so I wrote this little utility to wipe >> them off. > > I find that the following command works just fine for me: > > find /usr/ports -type d -name work -prune -print -delete And EVEN cooler is having a WRKDIRPREFIX= /var/ports in your /etc/make.conf, that way an "rm -rf /var/ports/*" cleans without unnecessary directory recursion. Regards erdgeist -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD4DBQFE8NM1ImmQdUyYEgkRAh4OAJ4m2S/EckiXj3N95NDba5TjW+z54gCY8CNp 5xvH4mLR9Kttl9KdB6NGBA== =F5cq -----END PGP SIGNATURE-----