diff options
author | Satoshi Asami <asami@FreeBSD.org> | 1995-09-13 10:14:31 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 1995-09-13 10:14:31 +0000 |
commit | 46bce4ac74b6d455b7e1c0b70d47a76bb8473d65 (patch) | |
tree | e45602b5ba647ee07af64ff73d601de2e8a5e7c0 /share/mk | |
parent | 832e06d4dc794a17333c76d46ff4214280f6264c (diff) | |
download | src-46bce4ac74b6d455b7e1c0b70d47a76bb8473d65.tar.gz src-46bce4ac74b6d455b7e1c0b70d47a76bb8473d65.zip |
Ignore patchfiles that end with ".orig" or "~".
Suggested by: paul, joerg among others
Notes
Notes:
svn path=/head/; revision=10709
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/bsd.port.mk | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk index 312c0a482e9a..8a5fc4c8f6c6 100644 --- a/share/mk/bsd.port.mk +++ b/share/mk/bsd.port.mk @@ -3,7 +3,7 @@ # bsd.port.mk - 940820 Jordan K. Hubbard. # This file is in the public domain. # -# $Id: bsd.port.mk,v 1.175 1995/08/18 10:06:28 asami Exp $ +# $Id: bsd.port.mk,v 1.177 1995/08/29 11:57:40 asami Exp $ # # Please view me with 4 column tabs! @@ -538,15 +538,29 @@ do-patch: @if [ -d ${PATCHDIR} ]; then \ ${ECHO_MSG} "===> Applying FreeBSD patches for ${PKGNAME}" ; \ for i in ${PATCHDIR}/patch-*; do \ - ${ECHO_MSG} "===> Applying FreeBSD patch $$i" ; \ - ${PATCH} ${PATCH_ARGS} < $$i; \ + case $$i in \ + *.orig|*~) \ + ${ECHO_MSG} "===> Ignoring patchfile $$i" ; \ + ;; \ + *) \ + ${ECHO_MSG} "===> Applying FreeBSD patch $$i" ; \ + ${PATCH} ${PATCH_ARGS} < $$i; \ + ;; \ + esac; \ done; \ fi .else @if [ -d ${PATCHDIR} ]; then \ ${ECHO_MSG} "===> Applying FreeBSD patches for ${PKGNAME}" ; \ - for i in ${PATCHDIR}/patch-*; \ - do ${PATCH} ${PATCH_ARGS} < $$i; \ + for i in ${PATCHDIR}/patch-*; do \ + case $$i in \ + *.orig|*~) \ + ${ECHO_MSG} "===> Ignoring patchfile $$i" ; \ + ;; \ + *) \ + ${PATCH} ${PATCH_ARGS} < $$i; \ + ;; \ + esac; \ done;\ fi .endif |