From owner-freebsd-newbies Mon Jan 7 13:44:38 2002 Delivered-To: freebsd-newbies@freebsd.org Received: from ocis.ocis.net (ocis.ocis.net [209.52.173.1]) by hub.freebsd.org (Postfix) with ESMTP id B343537B417 for ; Mon, 7 Jan 2002 13:44:34 -0800 (PST) Received: from phoenix (host64.wireless.kamloops.net [64.114.144.93]) by ocis.ocis.net (8.9.3/8.9.3) with ESMTP id NAA10249 for ; Mon, 7 Jan 2002 13:44:33 -0800 From: "Freddie Cash" Organization: PhoenixTek Consulting To: newbies@freebsd.org Date: Mon, 7 Jan 2002 13:44:38 -0800 MIME-Version: 1.0 Subject: Re: cleanning ports Reply-To: fcash@bigfoot.com Message-ID: <3C39A646.23700.2AF89E@localhost> References: <20020106190830.S59765-100000@BLAST> In-reply-to: X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body 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 Sun, 6 Jan 2002, Bernie wrote: > 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? Depending on what you want to do, and how much time you want to devote to doing it, there are several ways to do this: 1. Do a 'make clean' from /usr/ports/ and go out for lunch, dinner, and a movie. Might be done by the time you get back. :) j/k 2. Write a shell script to step through all the sub-directories doing 'make clean'. This isn't my idea of fun, though, and simply reproduces what #1 does. 3. Write a shell script to delete "/usr/ports/*/*/work/". This should be faster than either of the above, and can be extended to delete "/usr/ports/distfiles/*". 4. Install the excellent portupgrade port and use the included portsclean util. This will do #3 for you atuomagically. Very handy. I have a shell script that does #4, a cvsup of the ports tree, rebuilds the INDEX database, and performs a check for outdated installed ports(via portversion -v). Every Monday, I get to work with an e-mail telling me how up-to-date my machine is. :) Very useful little package, portupgrade. If you use the ports tree, then I find it to be a "must-have". Cheers, Freddie PhoenixTek Consulting fcash@bigfoot.com Unix / Networking Services (250) 314-4029 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message