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 <[EMAIL PROTECTED]> http://wolfram.schneider.org


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to