diff options
author | jdp <jdp@FreeBSD.org> | 1998-06-07 21:53:01 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1998-06-07 21:53:01 +0000 |
commit | 05f60feca3819030b4b81aa9cb8733dddcc676f0 (patch) | |
tree | e9bf4842e4b31573ca3776b1b8a4b625769dfc2c /release/Makefile | |
parent | 8c3dc868d38f3bd0cfe972fe736d59942d9a2251 (diff) | |
download | FreeBSD-src-05f60feca3819030b4b81aa9cb8733dddcc676f0.zip FreeBSD-src-05f60feca3819030b4b81aa9cb8733dddcc676f0.tar.gz |
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.
Diffstat (limited to 'release/Makefile')
-rw-r--r-- | release/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/release/Makefile b/release/Makefile index d712d15..a7e4091 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 |