Make the ports readmes and foreign docs more optional.

Submitted by:	Ben Smithurst <ben@scientia.demon.co.uk>
This commit is contained in:
Jordan K. Hubbard 2000-06-01 02:43:55 +00:00
parent 17dbf67736
commit 50ee7e6c72
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61145

View File

@ -52,9 +52,9 @@ OBJFORMAT?= elf
# to set NOPORTS and not set NODOC since docs depend on ports.
#NODOC= YES
#NOPORTS= YES
# Comment the following if you want the release documentation to be
# Set ALLLANG=no if you want the release documentation to be
# in English only.
ALLLANG= yes
ALLLANG?= yes
DOCPORTS= textproc/docproj
# Set this to wherever the distfiles required by ${DOCPORTS} live.
DOCDISTFILES?= ${.CURDIR}/../../ports/distfiles
@ -149,6 +149,12 @@ EXTRAS= cdrom.1 ftp.1
DOCREL= doc.1
.endif
.if !defined(NOPORTREADMES)
MAKEREADMES= make readmes PORTSDIR=${CHROOTDIR}/usr/ports
.else
MAKEREADMES= true
.endif
rerelease release:
.if !defined(CHROOTDIR) || !defined(BUILDNAME) || !defined(CVSROOT)
@echo "To make a release you must set CHROOTDIR, BUILDNAME and CVSROOT" && false
@ -187,9 +193,9 @@ rerelease release:
.endif
.if !defined(NOPORTS)
.if defined(AUXRELEASETAG)
cd ${CHROOTDIR}/usr && rm -rf ports && cvs -R -d ${CVSROOT} co -P -r ${AUXRELEASETAG} ${RELEASEPORTSMODULE} && cd ports && make readmes PORTSDIR=${CHROOTDIR}/usr/ports
cd ${CHROOTDIR}/usr && rm -rf ports && cvs -R -d ${CVSROOT} co -P -r ${AUXRELEASETAG} ${RELEASEPORTSMODULE} && cd ports && ${MAKEREADMES}
.else
cd ${CHROOTDIR}/usr && rm -rf ports && cvs -R -d ${CVSROOT} co -P ${RELEASEPORTSMODULE} && cd ports && make readmes PORTSDIR=${CHROOTDIR}/usr/ports
cd ${CHROOTDIR}/usr && rm -rf ports && cvs -R -d ${CVSROOT} co -P ${RELEASEPORTSMODULE} && cd ports && ${MAKEREADMES}
.endif
.endif
.if !defined(NODOC)
@ -241,7 +247,7 @@ rerelease release:
.if defined(NODOC)
echo "export NODOC=${NODOC}" >> ${CHROOTDIR}/mk
.endif
.if defined(ALLLANG)
.if defined(ALLLANG) && ${ALLLANG} != "NO" && ${ALLLANG} != "no"
echo "export ALLLANG=${ALLLANG}" >> ${CHROOTDIR}/mk
.else
echo "export DOC_LANG=en_US.ISO_8859-1" >> ${CHROOTDIR}/mk