From 72ac7e4d66657d1e1840dcc53f635faeb54f41f6 Mon Sep 17 00:00:00 2001 From: John Polstra Date: Sun, 7 Jun 1998 21:53:01 +0000 Subject: [PATCH] Speed up the cleaning of CHROOTDIR by almost a factor of two, by replacing two monstrous file tree walks with one monstrous tree walk and two miniscule ones. --- release/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/release/Makefile b/release/Makefile index d712d1521d6..a7e4091f6ea 100644 --- a/release/Makefile +++ b/release/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.353 1998/05/30 12:15:02 jkh Exp $ +# $Id: Makefile,v 1.354 1998/06/06 04:39:42 jkoshy Exp $ # # make release CHROOTDIR=/some/dir BUILDNAME=somename [ RELEASETAG=tag ] # @@ -128,6 +128,9 @@ rerelease release: .endif .if make(release) .if exists(${CHROOTDIR}) +# The first command will fail on a handful of files that have their schg +# flags set. But it greatly speeds up the next two commands. + -rm -rf ${CHROOTDIR} chflags -R noschg ${CHROOTDIR}/. -rm -rf ${CHROOTDIR} .endif