Make provisions for a pre-build script that one can use to frob the

chroot tree right after everything has been checked out and we're ready
to go.
This commit is contained in:
Jordan K. Hubbard 1998-08-16 01:24:40 +00:00
parent 86a14a7a0a
commit 48f1b394ea
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38355

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.366 1998/08/12 11:49:22 jkh Exp $
# $Id: Makefile,v 1.367 1998/08/16 00:44:29 jkh Exp $
#
# make release CHROOTDIR=/some/dir BUILDNAME=somename [ RELEASETAG=tag ]
#
@ -155,6 +155,9 @@ rerelease release:
.if defined(LOCAL_PATCHES) && exists(${LOCAL_PATCHES})
cd ${CHROOTDIR}/usr/src && patch --silent < ${LOCAL_PATCHES}
.endif
.if defined(LOCAL_SCRIPT) && exists(${LOCAL_SCRIPT})
cd ${CHROOTDIR} && env CHROOTDIR=${CHROOTDIR} BUILDNAME=${BUILDNAME} RELEASETAG=${RELEASETAG} ${LOCAL_SCRIPT}
.endif
.if !defined(NOPORTS)
cd ${CHROOTDIR}/usr && rm -rf ports && cvs -d ${CVSROOT} co -P ${RELEASEPORTSMODULE} && cd ports && make readmes PORTSDIR=${CHROOTDIR}/usr/ports
.endif