From 19ea12d3ec4743789e92af14f171c2e0265dcde1 Mon Sep 17 00:00:00 2001 From: jhb Date: Mon, 8 May 2000 22:21:17 +0000 Subject: Add a DOCDISTFILES variable to point to a directory containing the distfiles to build the docproj port during release. Prior to this, the distfiles were copied froom ${DISTFILES}. However, if like me, you needed to store the distfiles in some directory other than /usr/ports/distfiles, for example /usr/docdistfiles, then when you overrode ${DISTFILES} it broke the release build when it tried to build docproj port in the chroot'd release area. To preserve backwards compatibility, DOCDISTFILES defaults to the value of DISTFILES. Ok'd by: jkh --- release/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'release/Makefile') diff --git a/release/Makefile b/release/Makefile index c844812..3e3f610 100644 --- a/release/Makefile +++ b/release/Makefile @@ -56,8 +56,9 @@ OBJFORMAT?= elf # in English only. ALLLANG= yes DOCPORTS= textproc/docproj -# Set this to wherever the distfiles required by ${DOCPORTS} live. DISTFILES?= ${.CURDIR}/../../ports/distfiles +# Set this to wherever the distfiles required by ${DOCPORTS} live. +DOCDISTFILES?= ${DISTFILES} DIST_DOCS= ABOUT.TXT ERRATA.TXT LAYOUT.TXT README.TXT HARDWARE.TXT \ RELNOTES.TXT TROUBLE.TXT UPGRADE.TXT INSTALL.TXT @@ -198,8 +199,8 @@ rerelease release: .else cd ${CHROOTDIR}/usr && rm -rf doc && cvs -R -d ${CVSROOT} co -P ${RELEASEDOCMODULE} .endif - if [ -d ${DISTFILES}/ ]; then \ - cp -rp ${DISTFILES} ${CHROOTDIR}/usr/ports/distfiles; \ + if [ -d ${DOCDISTFILES}/ ]; then \ + cp -rp ${DOCDISTFILES} ${CHROOTDIR}/usr/ports/distfiles; \ fi .endif .endif -- cgit v1.1