Date: Sun, 19 Nov 2000 04:59:12 -0800 From: Cy Schubert - ITSD Open Systems Group <Cy.Schubert@uumail.gov.bc.ca> To: keith@freebsd.sinica.edu.tw Cc: stable@FreeBSD.ORG Subject: Re: cd /usr/ports; make clean Message-ID: <200011191259.eAJCxhS61880@cwsys.cwsent.com> In-Reply-To: Your message of "Sun, 19 Nov 2000 15:11:38 %2B0800." <20001119151138.A7434@bsdvm.jtjang.idv.tw>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20001119151138.A7434@bsdvm.jtjang.idv.tw>, Jing-Tang Keith
Jang wri
tes:
> On 11/18/00, James wrote:
> > On Sun, Nov 19, 2000 at 12:35:27AM -0600, David Kelly wrote:
> > > # find /usr/ports -type d -name work -print -execdir make clean \; -prune
> > >
> > > is much faster than "make clean" from the top. It seems to work OK if a
> > > clean target is put in /usr/ports/Makefile just prior to the .include
> > > <bsd.port.subdir.mk>
> >
> > Or for a much faster solution:
> > find /usr/ports -type d -name work -prune -print -exec rm -r {} \;
>
> why not just "cd /usr/ports; rm -fr */*/work"?
That takes forever tying up your shell looking for work directories.
You can put a copy of the shell in the background so you get on with
other tasks.
cd /usr/ports && (rm -rf */*/work) &
Regards, Phone: (250)387-8437
Cy Schubert Fax: (250)387-5766
Team Leader, Sun/DEC Team Internet: Cy.Schubert@osg.gov.bc.ca
Open Systems Group, ITSD, ISTA
Province of BC
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011191259.eAJCxhS61880>
