If we are building docs with this release and PREFETCHDISTFILES is defined

then download the distfiles for the ports needed to build the docs before
we enter the chroot environment.  This is useful since often times releases
get in a funk trying to download distfiles in the chroot.

Approved by:	re (murray, bmah)
MFC after:	5 days
This commit is contained in:
John Baldwin 2002-07-27 19:43:52 +00:00
parent d06c0d4d40
commit bb5e8f3f71

View File

@ -309,6 +309,13 @@ rerelease release:
else \
mkdir -p ${CHROOTDIR}/usr/ports/distfiles; \
fi
.if defined(PREFETCHDISTFILES)
@for i in ${DOCPORTS}; do \
cd ${CHROOTDIR}/usr/ports/$$i && \
make PORTSDIR=${CHROOTDIR}/usr/ports BATCH=yes \
JADETEX=no WITHOUT_PYTHON=yes fetch-recursive ; \
done
.endif
.endif
.endif
.if make(rerelease)