summaryrefslogtreecommitdiff
path: root/mk/subst.mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-01-01 22:52:16 +0000
committerrillig <rillig@pkgsrc.org>2006-01-01 22:52:16 +0000
commite4af2b5124608277a28362deb5fd83dbc6e86010 (patch)
tree71efda9d3712720204dfa0959a71b435139b606a /mk/subst.mk
parent3e2a95780b169fb915c5fbec10ef0563ed2a77c3 (diff)
downloadpkgsrc-e4af2b5124608277a28362deb5fd83dbc6e86010.tar.gz
Fixed some cases where the exitcode of child processes has been ignored.
This will cause package builds to fail instead of hiding bugs.
Diffstat (limited to 'mk/subst.mk')
-rw-r--r--mk/subst.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/subst.mk b/mk/subst.mk
index cfdf1b9ef79..73987758f74 100644
--- a/mk/subst.mk
+++ b/mk/subst.mk
@@ -1,4 +1,4 @@
-# $NetBSD: subst.mk,v 1.27 2006/01/01 22:30:35 rillig Exp $
+# $NetBSD: subst.mk,v 1.28 2006/01/01 22:52:16 rillig Exp $
#
# This Makefile fragment implements a general text replacement facility.
# Package makefiles define a ``class'', for each of which a particular
@@ -76,7 +76,7 @@ subst-${_class_}-cookie:
${TOUCH} ${TOUCH_FLAGS} ${_SUBST_COOKIE.${_class_}}
${_SUBST_COOKIE.${_class_}}:
- ${_PKG_SILENT}${_PKG_DEBUG} \
+ ${_PKG_SILENT}${_PKG_DEBUG} set -e; \
cd ${WRKSRC:Q}; \
files=${SUBST_FILES.${_class_}:Q}; \
for file in $$files; do \
@@ -84,8 +84,8 @@ ${_SUBST_COOKIE.${_class_}}:
tmpfile="$$file"${_SUBST_BACKUP_SUFFIX:Q}; \
if ${_SUBST_IS_TEXT_FILE}; then \
${MV} -f "$$file" "$$tmpfile" || exit 1; \
- ${CAT} "$$tmpfile" \
- | ${SUBST_FILTER_CMD.${_class_}} \
+ ${SUBST_FILTER_CMD.${_class_}} \
+ < "$$tmpfile" \
> "$$file"; \
if ${TEST} -x "$$tmpfile"; then \
${CHMOD} +x "$$file"; \