Re: A handy utility (at least for me)

[ Available lists | Index of freebsd-hackers | Month of Aug 2006 | Week of 26 Aug 2006 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Dirk Engling <erdgeist@erdgeist.org>
Date
26 Aug 2006 23:03:30
Subject
Re: A handy utility (at least for me)
Message-ID
44F0D335.4030604@erdgeist.org

In reply to
References to
Referenced by

[ Hide this part ]
-----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-----


Elapsed time: 0.151 seconds