From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 19 23:43:53 2012 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D27D61065672 for ; Tue, 19 Jun 2012 23:43:53 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from smtp5.server.rpi.edu (smtp5.server.rpi.edu [128.113.2.225]) by mx1.freebsd.org (Postfix) with ESMTP id 918438FC12 for ; Tue, 19 Jun 2012 23:43:53 +0000 (UTC) Received: from gilead.netel.rpi.edu (gilead.netel.rpi.edu [128.113.124.121]) by smtp5.server.rpi.edu (8.13.1/8.13.1) with ESMTP id q5JNhkSH025166; Tue, 19 Jun 2012 19:43:46 -0400 Message-ID: <4FE10EB2.5050009@FreeBSD.org> Date: Tue, 19 Jun 2012 19:43:46 -0400 From: Garance A Drosehn User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100722 Eudora/3.0.4 MIME-Version: 1.0 To: Matthias Apitz References: <20120609143521.GA3940@tinyCurrent> <79C2B8B9-9A7E-4793-AE03-FE387BB1694B@kientzle.com> <20120610130758.74a8b65b@desktop.pc> <20120611072402.GL5592@e-new.0x20.net> <20120611123409.GA1950@tiny> In-Reply-To: <20120611123409.GA1950@tiny> Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Bayes-Prob: 0.0001 (Score 0) X-RPI-SA-Score: 1.50 (*) [Hold at 8.00] COMBINED_FROM,RATWARE_GECKO_BUILD X-CanItPRO-Stream: outgoing X-Canit-Stats-ID: 50416137 - c48fcc559c19 X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.113.2.225 Cc: freebsd-hackers@FreeBSD.org Subject: Re: cleaning /usr/obj before copying it to USB key X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2012 23:43:53 -0000 On 6/11/12 8:34 AM, Matthias Apitz wrote: > Thanks for the hints concerning find(1) usage. I was wondering if there > is nothing like > > # make install-clean > or > # make remove-tempfiles > > Thanks > > matthias > I missed the beginning of this thread, but if you're talking about doing a 'make buildworld' and 'make installworld', then note that there is also a target for /usr/src called 'make cleanworld'. This will clean up the files from 'make buildworld', but would not clean up files in /usr/obj which were created by other things (such as ports, for instance). The subject says "before copying to USB key". Another thing you could do is build up an 'rsync' command with the appropriate set of options such that /usr/obj is not copied to your USB key. I don't know if that option makes sense for what you are trying to do. Another thing you could do is to set the environment variable MAKEOBJDIRPREFIX before you do buildworld and installworld, so that those are not using /usr/obj at all. This is a little trickier to do right, and you'll regret it if you do not set the variable in all the situations that you want to. But it might be another option for you. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu