pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Reinstate the fix in revision 1.6



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8485c589f7d8
branches:  trunk
changeset: 465387:8485c589f7d8
user:      kim <kim%pkgsrc.org@localhost>
date:      Mon Dec 29 02:55:22 2003 +0000

description:
Reinstate the fix in revision 1.6

diffstat:

 mk/subst.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 45f95cccb78f -r 8485c589f7d8 mk/subst.mk
--- a/mk/subst.mk       Mon Dec 29 02:13:38 2003 +0000
+++ b/mk/subst.mk       Mon Dec 29 02:55:22 2003 +0000
@@ -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 @@
        "")     ;;                                                      \
        *)      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;                       \



Home | Main Index | Thread Index | Old Index