From owner-freebsd-current Sun Sep 19 3:11:59 1999 Delivered-To: freebsd-current@freebsd.org Received: from baerenklau.de.freebsd.org (baerenklau.de.freebsd.org [195.185.195.14]) by hub.freebsd.org (Postfix) with ESMTP id 636101563B for ; Sun, 19 Sep 1999 03:11:43 -0700 (PDT) (envelope-from wosch@panke.de.freebsd.org) Received: (from uucp@localhost) by baerenklau.de.freebsd.org (8.8.8/8.8.8) with UUCP id MAA18824; Sun, 19 Sep 1999 12:11:32 +0200 (CEST) (envelope-from wosch@panke.de.freebsd.org) Received: (from wosch@localhost) by paula.panke.de.freebsd.org (8.9.3/8.8.8) id MAA03838; Sun, 19 Sep 1999 12:07:09 +0200 (CEST) (envelope-from wosch) Message-ID: <19990919120709.23486@panke.de.freebsd.org> Date: Sun, 19 Sep 1999 12:07:09 +0200 From: Wolfram Schneider To: "Rodney W. Grimes" , "John W. DeBoskey" Cc: freebsd-current@FreeBSD.ORG Subject: Re: optional 'make release' speed-up patch References: <199909090404.AAA71015@bb01f39.unx.sas.com> <199909090635.XAA16842@gndrsh.dnsmgr.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <199909090635.XAA16842@gndrsh.dnsmgr.net>; from Rodney W. Grimes on Wed, Sep 08, 1999 at 11:35:04PM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 http://wolfram.schneider.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message