From owner-freebsd-newbies Mon Jan 7 23:51:57 2002 Delivered-To: freebsd-newbies@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 4743D37B404 for ; Mon, 7 Jan 2002 23:51:54 -0800 (PST) Received: from hades.hell.gr (patr530-a154.otenet.gr [212.205.215.154]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id g087pqf22727; Tue, 8 Jan 2002 09:51:52 +0200 (EET) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id g087ppq56764; Tue, 8 Jan 2002 09:51:51 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 8 Jan 2002 09:51:50 +0200 From: Giorgos Keramidas To: Bernie Cc: FreeBSD-Newbies@FreeBSD.ORG Subject: Re: cleanning ports Message-ID: <20020108075150.GF50046@hades.hell.gr> References: <20020106190830.S59765-100000@BLAST> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020106190830.S59765-100000@BLAST> User-Agent: Mutt/1.3.23.2i Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 2002-01-06 19:11:17, Bernie wrote: > > hi, > > if i wanna clean all the obj etc from the ports tree, > can i go to /usr/ports and do a 'make clean' ? or do i have > to make a script that changes to all subdirs and do 'make clean' > on each dir? > > i have installed quite a few but havent make clean on many of them... Well, as a matter of fact that's exactly what 'make clean' will do, if you run it from /usr/ports :-) Faster ways can be crafted with careful find/xargs/rm usage, like for instance: # cd /usr/ports # find . -type d | grep 'work$' | xargs rm -fr but 'rm -fr' is a dangerous thing too use, and you should avoid playing around with find and rm, if you 're not sure of what each command you issue as root will do. - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message