Permit a "README", "SOURCE_DATE", and "source" at the top-level to be

added to the CD-ROM (only if they exist), as proposed on tech-install
and tech-toolchain without objections. Note, this will "bloat" the CD-ROM
image if you have done a "./build.sh sourcesets". If you don't want that,
just move "source" out of ${RELEASEDIR} for the "make iso-image".
This commit is contained in:
fredb 2005-01-15 18:18:18 +00:00
parent bebf49cc6f
commit ca38156730

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.301 2005/01/10 02:49:46 lukem Exp $
# $NetBSD: Makefile,v 1.302 2005/01/15 18:18:18 fredb Exp $
# from: @(#)Makefile 8.7 (Berkeley) 5/25/95
# Environment variables without default values:
@ -386,6 +386,11 @@ iso-image: .PHONY check_DESTDIR check_RELEASEDIR .WAIT iso-image-md-post
iso-image-setup: .PHONY check_RELEASEDIR
rm -f ${CDROM.pathlist}
.for extra in README SOURCE_DATE source
.if exists(${RELEASEDIR}/${extra})
echo "${extra}=${RELEASEDIR}/${extra}" >> ${CDROM.pathlist}
.endif
.endfor
echo "${MACHINE}=${RELEASEDIR}/${RELEASEMACHINEDIR}" >> ${CDROM.pathlist}
mkdir -p ${CDROM.dir}
mkdir -p ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/cdrom