Move the documentation to its own separate disc to make room for more

packages on disc2.  This will also let users decide if they want to
have a CD of the docs at all - unless they're disconnected from the
net they will probably find the Web site more useful.

Reviewed by:	ru
MFC after:	3 days
This commit is contained in:
Ken Smith 2006-11-16 23:09:35 +00:00
parent 3c2fcc3c92
commit 639fe104d8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164347

View File

@ -257,6 +257,9 @@ CD= ${_R}/cdrom
CD_BOOT= ${CD}/bootonly
CD_DISC1= ${CD}/disc1
CD_DISC2= ${CD}/disc2
.if !defined(NODOC)
CD_DOCS= ${CD}/docs
.endif
.if defined(SEPARATE_LIVEFS)
CD_LIVEFS= ${CD}/livefs
.else
@ -982,12 +985,15 @@ cdrom.2:
@echo "CD_VERSION = ${BUILDNAME}" > ${CD_DISC2}/cdrom.inf
@echo "CD_VOLUME = 2" >> ${CD_DISC2}/cdrom.inf
.if !defined(NODOC)
@mkdir -p ${CD_DISC2}/usr/share/doc
echo "Building CDROM docs filesystem image"
@mkdir -p ${CD_DOCS}
@echo "CD_VERSION = ${BUILDNAME}" > ${CD_DOCS}/cdrom.inf
@mkdir -p ${CD_DOCS}/usr/share/doc
@for i in `ls ${CD_LIVEFS}/usr/share/doc`; do \
if [ -L ${CD_LIVEFS}/usr/share/doc/$$i -o \
-d /usr/doc/$$i ]; then \
mv ${CD_LIVEFS}/usr/share/doc/$$i \
${CD_DISC2}/usr/share/doc; \
${CD_DOCS}/usr/share/doc; \
fi \
done
.endif
@ -1039,6 +1045,11 @@ iso.1:
FreeBSD_Packages \
${CD}/${BUILDNAME}-${TARGET}-disc2.iso ${CD_DISC2} \
${CD_DISC2_PKGS}
.if !defined(NODOC)
@sh ${.CURDIR}/${TARGET_ARCH}/mkisoimages.sh \
FreeBSD_Documentation \
${CD}/${BUILDNAME}-${TARGET}-docs.iso ${CD_DOCS}
.endif
.if defined(SEPARATE_LIVEFS)
@sh ${.CURDIR}/${TARGET_ARCH}/mkisoimages.sh ${BOOTABLE} \
FreeBSD_LiveFS \