Make LOCAL_PATCHES accept multiple patch files, as its name suggests.

This commit is contained in:
Ruslan Ermilov 2003-09-21 06:33:14 +00:00
parent 69a9febdc2
commit 9c758be211
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120310
2 changed files with 8 additions and 3 deletions

View File

@ -345,8 +345,13 @@ release rerelease:
cd ${CHROOTDIR}/usr && \
${CVSPREFIX} cvs -R ${CVSARGS} -d ${CVSROOT} co ${CVSCMDARGS} ${CVS_SRCARGS} ${RELEASESRCMODULE}
.endif
.if defined(LOCAL_PATCHES) && exists(${LOCAL_PATCHES})
cd ${CHROOTDIR}/usr/src && patch ${PATCH_FLAGS} < ${LOCAL_PATCHES}
.if defined(LOCAL_PATCHES) && !empty(LOCAL_PATCHES)
cd ${CHROOTDIR}/usr/${RELEASESRCMODULE}
.for p in ${LOCAL_PATCHES}
.if exists(${p})
patch ${PATCH_FLAGS} < ${p}
.endif
.endfor
.endif
.if defined(LOCAL_SCRIPT) && exists(${LOCAL_SCRIPT})
cd ${CHROOTDIR} && env CHROOTDIR=${CHROOTDIR} BUILDNAME=${BUILDNAME} RELEASETAG=${RELEASETAG} ${LOCAL_SCRIPT}

View File

@ -260,7 +260,7 @@ Each kernel is installed into
so that it can be booted from the loader via
.Dq Li "boot <config>" .
.It Va LOCAL_PATCHES
A patch file against
Patch files against
.Pa /usr/src
that will be applied in the
.Xr chroot 8