summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2003-09-21 06:33:14 +0000
committerru <ru@FreeBSD.org>2003-09-21 06:33:14 +0000
commit35b0a3b4a9eee7ad55947b2794bdaf3ed2be1fef (patch)
treed56150212037055b0dfb3d5c65bcbb9cf05729dc /release
parent1343b60a86e91326dd52b1e3cef081808324d205 (diff)
downloadFreeBSD-src-35b0a3b4a9eee7ad55947b2794bdaf3ed2be1fef.zip
FreeBSD-src-35b0a3b4a9eee7ad55947b2794bdaf3ed2be1fef.tar.gz
Make LOCAL_PATCHES accept multiple patch files, as its name suggests.
Diffstat (limited to 'release')
-rw-r--r--release/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/release/Makefile b/release/Makefile
index 9e9579a..f44893e 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -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}
OpenPOWER on IntegriCloud