summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-03-16 22:59:00 +0000
committerobrien <obrien@FreeBSD.org>2003-03-16 22:59:00 +0000
commit4b49145ba5a3d718e8bfc99f49f8011d4eefb586 (patch)
tree355cd0da7286a63da153f2e2b5ceb1442e29837c
parente0730b13ea809de27aa094bf2db3f6731167d554 (diff)
downloadFreeBSD-src-4b49145ba5a3d718e8bfc99f49f8011d4eefb586.zip
FreeBSD-src-4b49145ba5a3d718e8bfc99f49f8011d4eefb586.tar.gz
Make PREFETCHDISTFILES the default. Set NO_PREFETCHDISTFILES if you don't
like this. Also make it easier to issue the distfile fetching on command.
-rw-r--r--release/Makefile17
-rw-r--r--share/man/man7/release.714
2 files changed, 20 insertions, 11 deletions
diff --git a/release/Makefile b/release/Makefile
index 07a6e4b..7139ccf 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -371,13 +371,8 @@ release rerelease:
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 \
- WITHOUT_X11=yes JADETEX=no WITHOUT_PYTHON=yes \
- checksum-recursive ; \
- done
+.if !defined(NO_PREFETCHDISTFILES)
+ @cd ${.CURDIR} && ${MAKE} fetch-distfiles
.endif
.endif
.endif
@@ -482,6 +477,14 @@ release rerelease:
clean:
rm -rf boot_crunch release.[0-9]
+fetch-distfiles:
+ @for i in ${DOCPORTS}; do \
+ cd ${CHROOTDIR}/usr/ports/$$i && \
+ make PORTSDIR=${CHROOTDIR}/usr/ports BATCH=yes \
+ WITHOUT_X11=yes JADETEX=no WITHOUT_PYTHON=yes \
+ checksum-recursive ; \
+ done
+
# Clean out ${_R} and make the directory structure.
release.1:
mkdir -p ${_R}
diff --git a/share/man/man7/release.7 b/share/man/man7/release.7
index f725e8b..a73bbb3 100644
--- a/share/man/man7/release.7
+++ b/share/man/man7/release.7
@@ -156,6 +156,9 @@ file system) from the CD-ROM release area
(disabled by default, see
.Va MAKE_ISOS
below).
+.It Cm fetch-distfiles
+Fetches distfiles needed during the release build that are not already in
+.Va RELEASEDISTFILES .
.It Cm doc.1
Builds all of the necessary tools to turn the
.Fx
@@ -202,7 +205,7 @@ directory tree.
.El
.Pp
Optional variables:
-.Bl -tag -width ".Va PREFETCHDISTFILES"
+.Bl -tag -width ".Va NO_PREFETCHDISTFILES"
.It Va CVSCMDARGS
Additional arguments for
.Xr cvs 1
@@ -308,13 +311,16 @@ If
.Va RELEASETAG
specifies a release tag,
then the associated release version is used as the default instead.
-.It Va PREFETCHDISTFILES
+.It Va NO_PREFETCHDISTFILES
If this variable is defined,
-then distfiles needed during the release build will be downloaded prior to
+then distfiles needed during the release build will not be downloaded prior to
entering the
.Xr chroot 8
environment.
-Note that this is done after any distfiles are obtained via
+Note that if
+.Va NO_PREFETCHDISTFILES
+is not set,
+the fetching is done after any distfiles are obtained via
.Va RELEASEDISTFILES .
.It Va RELEASEDISTFILES
The directory where the distribution files for ports required by the
OpenPOWER on IntegriCloud