Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jun 2012 19:43:46 -0400
From:      Garance A Drosehn <gad@FreeBSD.org>
To:        Matthias Apitz <guru@unixarea.de>
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: cleaning /usr/obj before copying it to USB key
Message-ID:  <4FE10EB2.5050009@FreeBSD.org>
In-Reply-To: <20120611123409.GA1950@tiny>
References:  <20120609143521.GA3940@tinyCurrent>	<79C2B8B9-9A7E-4793-AE03-FE387BB1694B@kientzle.com>	<20120610130758.74a8b65b@desktop.pc>	<20120611072402.GL5592@e-new.0x20.net> <20120611123409.GA1950@tiny>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FE10EB2.5050009>