diff options
author | hubertf <hubertf@pkgsrc.org> | 1999-01-09 20:52:30 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 1999-01-09 20:52:30 +0000 |
commit | 8936dac1ff72cd2bf27abd3224c3e731f40df2e5 (patch) | |
tree | 2f5e0ea20f8bf0f635b10b1d7f1439440096d67e /mk | |
parent | bf237c0e31e04294c4ba67e152632c693129d0fc (diff) | |
download | pkgsrc-8936dac1ff72cd2bf27abd3224c3e731f40df2e5.tar.gz |
If applying a patch fails, tell which patch failed.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 337a80f52c7..a42338d5d13 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.200 1999/01/04 19:23:30 tv Exp $ +# $NetBSD: bsd.pkg.mk,v 1.201 1999/01/09 20:52:30 hubertf Exp $ # # This file is in the public domain. # @@ -925,10 +925,12 @@ do-patch: fi; \ case $$i in \ *.Z|*.gz) \ - ${GZCAT} $$i | ${PATCH} ${PATCH_DIST_ARGS}; \ + ${GZCAT} $$i | ${PATCH} ${PATCH_DIST_ARGS} \ + || ( ${ECHO} Patch $$i failed ; exit 1 ) ; \ ;; \ *) \ - ${PATCH} ${PATCH_DIST_ARGS} < $$i; \ + ${PATCH} ${PATCH_DIST_ARGS} < $$i \ + || ( ${ECHO} Patch $$i failed ; exit 1 ) ; \ ;; \ esac; \ done) @@ -950,7 +952,8 @@ do-patch: if [ ${PATCH_DEBUG_TMP} = yes ]; then \ ${ECHO_MSG} "===> Applying ${OPSYS} patch $$i" ; \ fi; \ - ${PATCH} ${PATCH_ARGS} < $$i; \ + ${PATCH} ${PATCH_ARGS} < $$i \ + || ( ${ECHO} Patch $$i failed ; exit 1 ) ; \ ;; \ esac; \ done; \ |