From e4af2b5124608277a28362deb5fd83dbc6e86010 Mon Sep 17 00:00:00 2001 From: rillig Date: Sun, 1 Jan 2006 22:52:16 +0000 Subject: Fixed some cases where the exitcode of child processes has been ignored. This will cause package builds to fail instead of hiding bugs. --- mk/subst.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mk/subst.mk') 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"; \ -- cgit v1.2.3