diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2004-07-15 04:52:57 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2004-07-15 04:52:57 +0000 |
| commit | db8714af5285f03c779ba03e54c2539f146f89bd (patch) | |
| tree | 0364eb67386b00e512f4c8f8e869030e7985dd28 | |
| parent | 208f2fd1ed5a88a11413c49834d2c37c289f9c7e (diff) | |
Notes
| -rw-r--r-- | release/Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/release/Makefile b/release/Makefile index f9a8fdd07d11..458bd92a6f2d 100644 --- a/release/Makefile +++ b/release/Makefile @@ -314,6 +314,18 @@ release rerelease: @echo "unset NOPORTS, or set at least DOMINIMALDOCPORTS to YES!" @exit 1 .endif +.if defined(LOCAL_PATCHES) && !empty(LOCAL_PATCHES) +.for p in ${LOCAL_PATCHES} +.if !exists(${p}) + @echo "The patch file ${p} does not exist!" + @exit 1 +.endif +.endfor +.endif +.if defined(LOCAL_SCRIPT) && !exists(${LOCAL_SCRIPT}) + @echo "The local script ${LOCAL_SCRIPT} does not exist!" + @exit 1 +.endif .if make(release) .if exists(${CHROOTDIR}) # The first command will fail on a handful of files that have their schg @@ -347,12 +359,10 @@ release rerelease: .endif .if defined(LOCAL_PATCHES) && !empty(LOCAL_PATCHES) .for p in ${LOCAL_PATCHES} -.if exists(${p}) patch -d ${CHROOTDIR}/usr/${RELEASESRCMODULE} ${PATCH_FLAGS} < ${p} -.endif .endfor .endif -.if defined(LOCAL_SCRIPT) && exists(${LOCAL_SCRIPT}) +.if defined(LOCAL_SCRIPT) cd ${CHROOTDIR} && env CHROOTDIR=${CHROOTDIR} BUILDNAME=${BUILDNAME} \ RELEASETAG=${RELEASETAG} ${LOCAL_SCRIPT} .endif |
