summaryrefslogtreecommitdiff
path: root/mk/subst.mk
diff options
context:
space:
mode:
authorkim <kim>2003-12-29 02:55:22 +0000
committerkim <kim>2003-12-29 02:55:22 +0000
commitcc74d2f3038bf048357e7c3ac06eb36962cc6290 (patch)
tree607702d69b1e23ee5fc1304524456384d397adde /mk/subst.mk
parent127a8c01d8b8da6180346247dfeb2a589474ec68 (diff)
downloadpkgsrc-cc74d2f3038bf048357e7c3ac06eb36962cc6290.tar.gz
Reinstate the fix in revision 1.6
Diffstat (limited to 'mk/subst.mk')
-rw-r--r--mk/subst.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/subst.mk b/mk/subst.mk
index 4cbba4ad453..16072e134c8 100644
--- a/mk/subst.mk
+++ b/mk/subst.mk
@@ -1,4 +1,4 @@
-# $NetBSD: subst.mk,v 1.8 2003/12/28 17:28:26 kim Exp $
+# $NetBSD: subst.mk,v 1.9 2003/12/29 02:55:22 kim Exp $
#
# This Makefile fragment implements a general text replacement facility
# for different classes of files in ${WRKSRC}. For each class of files,
@@ -74,7 +74,7 @@ ${_SUBST_COOKIE.${_class_}}:
"") ;; \
*) for file in $${files}; do \
if ${_SUBST_IS_TEXT_FILE}; then \
- ${MV} -f $$file $$file.subst.sav; \
+ ${MV} -f $$file $$file.subst.sav || exit 1; \
${CAT} $$file.subst.sav \
| ${SUBST_FILTER_CMD.${_class_}} \
> $$file; \