diff options
author | grant <grant> | 2003-12-27 03:05:53 +0000 |
---|---|---|
committer | grant <grant> | 2003-12-27 03:05:53 +0000 |
commit | ecc18de8ff4a18b1803e14c05afaa45e34ab68e0 (patch) | |
tree | 86d447a28c22419fe6a1da503fd9606b6cf5998b /mk | |
parent | 693e1d397f058abfc5ec72b9f4ec69b1a4093c2a (diff) | |
download | pkgsrc-ecc18de8ff4a18b1803e14c05afaa45e34ab68e0.tar.gz |
bomb to prevent silent failure if we're unable to rename a file
before subst'ing it.
previously, only a warning would be printed and the .subst_done
cookie(s) would be created, indicating that the subst target was
successful when it really was not.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/subst.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/subst.mk b/mk/subst.mk index 68b5b6634cb..6187bb6f9d7 100644 --- a/mk/subst.mk +++ b/mk/subst.mk @@ -1,4 +1,4 @@ -# $NetBSD: subst.mk,v 1.5 2003/12/27 03:02:11 grant Exp $ +# $NetBSD: subst.mk,v 1.6 2003/12/27 03:05:53 grant Exp $ # # This Makefile fragment implements a general text replacement facility # for different classes of files in ${WRKSRC}. For each class of files, @@ -69,7 +69,7 @@ ${_SUBST_COOKIE.${_class_}}: case "$$files" in \ "") ;; \ *) for file in $${files}; do \ - ${MV} -f $$file $$file.subst.sav; \ + ${MV} -f $$file $$file.subst.sav || exit 1; \ ${CAT} $$file.subst.sav \ | ${SUBST_FILTER_CMD.${_class_}} \ > $$file; \ |