mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
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.
This commit is contained in:
parent
48115288df
commit
72ac7e4d66
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36742
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user