aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-06-14 02:56:24 +0800
committerbapt <bapt@FreeBSD.org>2013-06-14 02:56:24 +0800
commit7b74c7232462d861a371261784d804bb076c6402 (patch)
treea50744fed4ea521dd6e41dc5819b9f7aa085de01
parent01f99f12562fb7569e6b6a105a5c04229c28ac00 (diff)
downloadfreebsd-ports-gnome-7b74c7232462d861a371261784d804bb076c6402.tar.gz
freebsd-ports-gnome-7b74c7232462d861a371261784d804bb076c6402.tar.zst
freebsd-ports-gnome-7b74c7232462d861a371261784d804bb076c6402.zip
Previous attempt to fix the make patch with bmake (make it fail if a patch fails) was too intrusive.
Turn it back into a full script with set -e expliticly added.
-rw-r--r--Mk/bsd.port.mk45
1 files changed, 23 insertions, 22 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index d8dd2ca11123..e43081557a04 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -3591,30 +3591,31 @@ patch-dos2unix:
do-patch:
.if defined(PATCHFILES)
@${ECHO_MSG} "===> Applying distribution patches for ${PKGNAME}"
-.for i in ${_PATCHFILES}
-. if defined(PATCH_DEBUG_TMP) && ${PATCH_DEBUG_TMP} == yes
- @${ECHO_MSG} "===> Applying distribution patch $i"
-. endif
- @(cd ${_DISTDIR}; \
- case $i in \
- *.Z|*.gz) ${GZCAT} $i ;; \
- *.bz2) ${BZCAT} $i ;; \
- *.xz) ${XZCAT} $i ;; \
- *) ${CAT} $i ;; \
- esac | ${PATCH} ${PATCH_DIST_ARGS} )
-. endfor
+ @set -e ; \
+ (cd ${_DISTDIR} ; \
+ for i in ${_PATCHFILES}; do \
+ if [ ${PATCH_DEBUG_TMP} = yes ]; then \
+ @${ECHO_MSG} "===> Applying distribution patch $$i" ; \
+ fi ; \
+ case $$i in \
+ *.Z|*.gz) ${GZCAT} $$i ;; \
+ *.bz2) ${BZCAT} $$i ;; \
+ *.xz) ${XZCAT} $$i ;; \
+ *) ${CAT} $$i ;; \
+ esac | ${PATCH} ${PATCH_DIST_ARGS} ; \
+ done )
.endif
.if defined(EXTRA_PATCHES)
-. for i in ${EXTRA_PATCHES}
- @${ECHO_MSG} "===> Applying extra patch $i"
- @(cd ${_DISTDIR}; \
- case $i in \
- *.Z|*.gz) ${GZCAT} $i ;; \
- *.bz2) ${BZCAT} $i ;; \
- *.xz) ${XZCAT} $i ;; \
- *) ${CAT} $i ;; \
- esac | ${PATCH} ${PATCH_DIST_ARGS} )
-. endfor
+ @set -e ; \
+ for i in ${EXTRA_PATCHES}; do \
+ ${ECHO_MSG} "===> Applying extra patch $$i" ; \
+ case $$i in \
+ *.Z|*.gz) ${GZCAT} $$i ;; \
+ *.bz2) ${BZCAT} $$i ;; \
+ *.xz) ${XZCAT} $$i ;; \
+ *) ${CAT} $$i ;; \
+ esac | ${PATCH} ${PATCH_ARGS} ; \
+ done
.endif
@set -e ;\
if [ -d ${PATCHDIR} ]; then \