Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Sep 1999 12:07:09 +0200
From:      Wolfram Schneider <wosch@panke.de.freebsd.org>
To:        "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net>, "John W. DeBoskey" <jwd@unx.sas.com>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: optional 'make release' speed-up patch
Message-ID:  <19990919120709.23486@panke.de.freebsd.org>
In-Reply-To: <199909090635.XAA16842@gndrsh.dnsmgr.net>; from Rodney W. Grimes on Wed, Sep 08, 1999 at 11:35:04PM -0700
References:  <199909090404.AAA71015@bb01f39.unx.sas.com> <199909090635.XAA16842@gndrsh.dnsmgr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1999-09-08 23:35:04 -0700, Rodney W. Grimes wrote:
> > Hi,
> > 
> >    The following patch to /usr/src/release/Makefile allows the
> > specification of the variable FASTCLEAN, which instead of doing
> > a recursive rm on CHROOTDIR, simply umounts/newfs/mounts. Of
> > course, this is only useful if your CHROOTDIR location is a
> > separate mount point (which mine is: /snap).
> > 
> >    Comments and critiques welcome.
> 
> And how about a similiar patch to /usr/src/Makefile that is
> FASTCLEANDIR that brings back a patched up version of
> my original CLEANDIR.  Something like 
> 		-rm -rf /usr/obj/${.CURDIR}/tmp
> 		chflags -R noschg /usr/obj/${.CURDIR}/tmp
> 		rm -rf /usr/obj/${.CURDIR}

You could also rename the old obj directory and then
run the remove command as background process:

  mv /usr/obj/${.CURDIR} /usr/obj/${.CURDIR}.foobar
  ( rm -rf /usr/obj/${.CURDIR}.foobar; \
    chflags -R noschg /usr/obj/${.CURDIR}.foobar; \
    rm -rf /usr/obj/${.CURDIR}.foobar ) &

-- 
Wolfram Schneider <wosch@freebsd.org> http://wolfram.schneider.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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