Re: A handy utility (at least for me)

2006-08-30 Thread Thiago Damas
It can be: cd /usr/ports rm -rf */*/work []s On 8/26/06, Rick C. Petty [EMAIL PROTECTED] 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

Re: A handy utility (at least for me)

2006-08-30 Thread Oliver Fromme
Thiago Damas [EMAIL PROTECTED] wrote: It can be: cd /usr/ports rm -rf */*/work That could overflow your argument verctor if there's a large number of work directories. It's better to use echo */*/work | xargs rm -rf if you don't know the size of the pattern expansion in advance,

Re: A handy utility (at least for me)

2006-08-29 Thread Oliver Fromme
Richard Coleman wrote: Oliver Fromme wrote: The following is probably the most efficient solution. It doesn't run into all subdirectories (and works with an arbitrary numebr of subdirectories). cd /usr/ports; echo */*/work | xargs rm -rf So does this: find /usr/ports

Re: A handy utility (at least for me)

2006-08-29 Thread Bill Vermillion
On Tue, Aug 29, 2006 at 12:00 [EMAIL PROTECTED] saw Error reading FAT table? Try SKINNY table? And promptly said: Date: Mon, 28 Aug 2006 18:18:58 +0200 (CEST) From: Oliver Fromme [EMAIL PROTECTED] Subject: Re: A handy utility (at least for me) Rick C. Petty wrote: Mario Lobo wrote

Re: A handy utility (at least for me)

2006-08-29 Thread Naram Qashat
- Original Message - From: Bill Vermillion [EMAIL PROTECTED] To: freebsd-hackers@freebsd.org Sent: Tuesday, August 29, 2006 12:24 PM Subject: Re: A handy utility (at least for me) On Tue, Aug 29, 2006 at 12:00 [EMAIL PROTECTED] saw Error reading FAT table? Try SKINNY table

Re: A handy utility (at least for me)

2006-08-28 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Rick C. Petty [EMAIL PROTECTED] writes: : 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

Re: A handy utility (at least for me)

2006-08-28 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Dirk Engling [EMAIL PROTECTED] writes: : 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

Re: A handy utility (at least for me)

2006-08-28 Thread Oliver Fromme
Rick C. Petty wrote: Mario Lobo wrote: My /usr/ports directory was occuping 24 gigs, of which 20 was just from the 'work' directories ! You should type make clean more often. ;-) Removing them one by one was a pain so I wrote this little utility to wipe them off. I

Re: A handy utility (at least for me)

2006-08-28 Thread Rick C. Petty
On Mon, Aug 28, 2006 at 06:18:58PM +0200, Oliver Fromme wrote: Rick C. Petty wrote: I find that the following command works just fine for me: find /usr/ports -type d -name work -prune -print -delete The following is probably the most efficient solution. It doesn't run into all

Re: A handy utility (at least for me)

2006-08-28 Thread Mike Meyer
In [EMAIL PROTECTED], Rick C. Petty [EMAIL PROTECTED] typed: On Mon, Aug 28, 2006 at 06:18:58PM +0200, Oliver Fromme wrote: Rick C. Petty wrote: I find that the following command works just fine for me: find /usr/ports -type d -name work -prune -print -delete The following is probably

Re: A handy utility (at least for me)

2006-08-28 Thread Rick C. Petty
On Mon, Aug 28, 2006 at 02:18:48PM -0400, Mike Meyer wrote: If echo is a shell built in, then it works just fine, and the xargs insures that you don't try passing to many arguments to rm. Ah! I was mistaken; I didn't think about builtins not requiring argument passing. Also I don't see

Re: A handy utility (at least for me)

2006-08-28 Thread Richard Coleman
Oliver Fromme wrote: The following is probably the most efficient solution. It doesn't run into all subdirectories (and works with an arbitrary numebr of subdirectories). cd /usr/ports; echo */*/work | xargs rm -rf Best regards Oliver So does this: find /usr/ports -mindepth 3 -maxdepth

A handy utility (at least for me)

2006-08-26 Thread Mario Lobo
Hi; 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. If you find it useful, pass it on. Its not a big deal but thanks for keeping the credits on it. Last but

Re: A handy utility (at least for me)

2006-08-26 Thread Rick C. Petty
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

Re: A handy utility (at least for me)

2006-08-26 Thread Steve Kargl
On Sat, Aug 26, 2006 at 07:19:06PM -0300, Mario Lobo wrote: If you find it useful, pass it on. Its not a big deal but thanks for keeping the credits on it. Actually, it is a big deal for some people. Why the GPL? You are posting to a FreeBSD list. -- Steve

Re: A handy utility (at least for me)

2006-08-26 Thread Daniel Gerzo
Hello Mario, Sunday, August 27, 2006, 12:19:06 AM, you wrote: Hi; 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. try portsclean(1) which IIRC belongs to

Re: A handy utility (at least for me)

2006-08-26 Thread Dirk Engling
-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

Re: A handy utility (at least for me)

2006-08-26 Thread Mario Lobo
On Saturday 26 August 2006 20:01, you wrote: Actually, it is a big deal for some people. Why the GPL? You are posting to a FreeBSD list. You're right, but I build it in kdevelop and it put it there so I felt I should leave it there. -- Mario Lobo http://www.mallavoodoo.com.br 99% rwindows

Re: A handy utility (at least for me)

2006-08-26 Thread Roman Kurakin
Rick C. Petty: 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

Re: A handy utility (at least for me)

2006-08-26 Thread Dirk Engling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roman Kurakin wrote: A bit rude, but also works cd /usr/ports make clean This one takes ages, every port is being cleaned which in turn cleans every dependency, so low level ports will be make cleaned thousand times. Better would be for port

Re: A handy utility (at least for me)

2006-08-26 Thread Mario Lobo
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.

Re: A handy utility (at least for me)

2006-08-26 Thread albi
On Sun, 27 Aug 2006 03:12:52 +0400 Roman Kurakin [EMAIL PROTECTED] wrote: Rick C. Petty: 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

Re: A handy utility (at least for me)

2006-08-26 Thread Nicolas Rachinsky
* albi [EMAIL PROTECTED] [2006-08-27 01:13 +0200]: guys... please use the official portsclean ! :) included in the sysutils/portupgrade portsclean -h portsclean 2.0.1 (2006/06/13) usage: portsclean [-hCDDiLnPPQQq] -h, --help Show this message -C, --workclean

Re: A handy utility (at least for me)

2006-08-26 Thread Rick C. Petty
On Sun, Aug 27, 2006 at 01:13:19AM +0200, albi wrote: I find that the following command works just fine for me: find /usr/ports -type d -name work -prune -print -delete A bit rude, but also works cd /usr/ports make clean guys... please use the official portsclean ! :)

Re: A handy utility (at least for me)

2006-08-26 Thread Roman Kurakin
albi: On Sun, 27 Aug 2006 03:12:52 +0400 Roman Kurakin [EMAIL PROTECTED] wrote: Rick C. Petty: 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

Re: A handy utility (at least for me)

2006-08-26 Thread Mike Meyer
In [EMAIL PROTECTED], Mario Lobo [EMAIL PROTECTED] typed: Hi; 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. Setting WORDIRPREFIX in /etc/make.conf