From owner-freebsd-stable Sun Nov 19 5: 1:33 2000 Delivered-To: freebsd-stable@freebsd.org Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by hub.freebsd.org (Postfix) with ESMTP id 156FB37B479 for ; Sun, 19 Nov 2000 05:01:28 -0800 (PST) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.8.7/8.8.8) id FAA09925; Sun, 19 Nov 2000 05:00:53 -0800 Received: from passer.osg.gov.bc.ca(142.32.110.29) via SMTP by point.osg.gov.bc.ca, id smtpda09919; Sun Nov 19 05:00:35 2000 Received: (from uucp@localhost) by passer.osg.gov.bc.ca (8.11.1/8.9.1) id eAJD0UI03061; Sun, 19 Nov 2000 05:00:30 -0800 (PST) Received: from cwsys9.cwsent.com(10.2.2.1), claiming to be "cwsys.cwsent.com" via SMTP by passer9.cwsent.com, id smtpdJp3045; Sun Nov 19 04:59:43 2000 Received: (from uucp@localhost) by cwsys.cwsent.com (8.11.1/8.9.1) id eAJCxhS61880; Sun, 19 Nov 2000 04:59:43 -0800 (PST) Message-Id: <200011191259.eAJCxhS61880@cwsys.cwsent.com> Received: from localhost.cwsent.com(127.0.0.1), claiming to be "cwsys" via SMTP by localhost.cwsent.com, id smtpdR61874; Sun Nov 19 04:59:12 2000 X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 Reply-To: Cy Schubert - ITSD Open Systems Group From: Cy Schubert - ITSD Open Systems Group X-OS: FreeBSD 4.1.1-RELEASE X-Sender: cy To: keith@freebsd.sinica.edu.tw Cc: stable@FreeBSD.ORG Subject: Re: cd /usr/ports; make clean In-reply-to: Your message of "Sun, 19 Nov 2000 15:11:38 +0800." <20001119151138.A7434@bsdvm.jtjang.idv.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 19 Nov 2000 04:59:12 -0800 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 > > > > > > > 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