From owner-freebsd-ports@FreeBSD.ORG Sat Nov 4 19:04:07 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2EC5116A40F for ; Sat, 4 Nov 2006 19:04:07 +0000 (UTC) (envelope-from freebsd@bitfreak.org) Received: from mail.twinthornes.com (mail.twinthornes.com [65.75.198.147]) by mx1.FreeBSD.org (Postfix) with ESMTP id 662EA43DA2 for ; Sat, 4 Nov 2006 19:03:53 +0000 (GMT) (envelope-from freebsd@bitfreak.org) Received: from [10.9.70.3] (c-71-56-148-19.hsd1.or.comcast.net [71.56.148.19]) by mail.twinthornes.com (Postfix) with ESMTP id CD8FDD66; Sat, 4 Nov 2006 11:03:49 -0800 (PST) Message-ID: <454CE40E.4030902@bitfreak.org> Date: Sat, 04 Nov 2006 11:03:42 -0800 From: freebsd@bitfreak.org User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: "J. R. Lenz" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: useful shell script X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Nov 2006 19:04:07 -0000 J. R. Lenz wrote: > Reclaiming disk space was a high priority on my laptop, which has a 4gb > FreeBSD partition. So, I wrote a useful shell script for removing all the > "work" directories in the ports tree (I'm sure someone has already done > this, but it saves a little bit of time for those people who are not > fluent in shell scripting). You'd be surprised how much disk space can be > freed up by removing unused source code and compiled objects. rm -rf /usr/ports/*/*/work