ALLLANG is long dead, garbage collect it. Instead, make it possible

to use DOC_LANG to specify which languages the doc/ is built for.

Note: be aware that the DOC_LANG setting in /etc/make.conf will now
take the effect on "make release".  (This is probably the desired
behavior anyway.)

PR:		docs/42924
This commit is contained in:
Ruslan Ermilov 2002-09-23 14:33:47 +00:00
parent ed32df81e8
commit a7042915ba

View File

@ -106,10 +106,11 @@ NOPORTSATALL= YES
.endif .endif
.endif .endif
# Set ALLLANG=no if you want the documentation (e.g. Handbook, FAQ) to be # By default, documentation (Handbook, FAQ, etc.) is built for all
# in English only. The language for the release notes is controlled # the languages. To speed up building, set the DOC_LANG to just
# by the RELNOTES_LANG variable above. # the languages you need. (The language for the release notes is
ALLLANG?= yes # controlled by the RELNOTES_LANG variable above.)
#DOC_LANG= en_US.ISO8859-1
DOCPORTS= textproc/docproj DOCPORTS= textproc/docproj
# Set this to wherever the distfiles required by release procedures. # Set this to wherever the distfiles required by release procedures.
.if defined(DOCDISTFILES) .if defined(DOCDISTFILES)
@ -350,7 +351,7 @@ rerelease release:
echo "_RELTARGET=\$${1:-doRELEASE}" >> ${CHROOTDIR}/mk echo "_RELTARGET=\$${1:-doRELEASE}" >> ${CHROOTDIR}/mk
.for var in \ .for var in \
AUTO_KEYBOARD_DETECT BOOT_CONFIG BUILDNAME \ AUTO_KEYBOARD_DETECT BOOT_CONFIG BUILDNAME \
CD_EXTRA_BITS DISTRIBUTIONS DOMINIMALDOCPORTS \ CD_EXTRA_BITS DISTRIBUTIONS DOC_LANG DOMINIMALDOCPORTS \
EXTRA_SRC FIXCRYPTO KERNELS KERNEL_FLAGS \ EXTRA_SRC FIXCRYPTO KERNELS KERNEL_FLAGS \
MAKE_ISOS NODOC NOKERBEROS NOPORTS NOSHARED \ MAKE_ISOS NODOC NOKERBEROS NOPORTS NOSHARED \
NOSRC NO_SENDMAIL RELEASETAG \ NOSRC NO_SENDMAIL RELEASETAG \
@ -359,11 +360,6 @@ rerelease release:
echo "export ${var}=\"${${var}}\"" >> ${CHROOTDIR}/mk echo "export ${var}=\"${${var}}\"" >> ${CHROOTDIR}/mk
.endif .endif
.endfor .endfor
.if defined(ALLLANG) && ${ALLLANG} != "NO" && ${ALLLANG} != "no"
echo "export ALLLANG=${ALLLANG}" >> ${CHROOTDIR}/mk
.else
echo "export DOC_LANG=en_US.ISO8859-1" >> ${CHROOTDIR}/mk
.endif
# Don't remove this, or the build will fall over! # Don't remove this, or the build will fall over!
echo "export RELEASEDIR=${_R}" >> ${CHROOTDIR}/mk echo "export RELEASEDIR=${_R}" >> ${CHROOTDIR}/mk
echo "export PATH=/bin:/usr/bin:/sbin:/usr/sbin:${LOCALDIR}" >> ${CHROOTDIR}/mk echo "export PATH=/bin:/usr/bin:/sbin:/usr/sbin:${LOCALDIR}" >> ${CHROOTDIR}/mk