From 4e96ce387c8855a164e8dec4746089c50bdfa201 Mon Sep 17 00:00:00 2001 From: jkh Date: Thu, 1 Jun 2000 02:43:55 +0000 Subject: Make the ports readmes and foreign docs more optional. Submitted by: Ben Smithurst --- release/Makefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'release/Makefile') diff --git a/release/Makefile b/release/Makefile index 7812a4d..f1ed9b3 100644 --- a/release/Makefile +++ b/release/Makefile @@ -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 -- cgit v1.1