summaryrefslogtreecommitdiffstats
path: root/release/Makefile
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>2000-06-01 02:43:55 +0000
committerjkh <jkh@FreeBSD.org>2000-06-01 02:43:55 +0000
commit4e96ce387c8855a164e8dec4746089c50bdfa201 (patch)
tree8a7171dc5be258ad0cb95e444518bea1c610ecb4 /release/Makefile
parentba367be739cba7c06a94368d2b60cf65f9198b72 (diff)
downloadFreeBSD-src-4e96ce387c8855a164e8dec4746089c50bdfa201.zip
FreeBSD-src-4e96ce387c8855a164e8dec4746089c50bdfa201.tar.gz
Make the ports readmes and foreign docs more optional.
Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
Diffstat (limited to 'release/Makefile')
-rw-r--r--release/Makefile16
1 files changed, 11 insertions, 5 deletions
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
OpenPOWER on IntegriCloud