diff options
author | asami <asami@FreeBSD.org> | 1995-10-11 09:25:58 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1995-10-11 09:25:58 +0000 |
commit | 4f4a334595d1fba26b5f4f1b4e2733fd6807eb53 (patch) | |
tree | 95336de5603b676333de9db35c59cb392a1b8568 /Mk | |
parent | a561a9fb341e08d532bf2b8a04ad1c59b8b7157f (diff) | |
download | FreeBSD-ports-4f4a334595d1fba26b5f4f1b4e2733fd6807eb53.zip FreeBSD-ports-4f4a334595d1fba26b5f4f1b4e2733fd6807eb53.tar.gz |
Add "--batch" to PATCH_ARGS and PATCH_DIST_ARGS when ${BATCH} is set
to avoid an infinite loop in patch when the patch target is not found and
stdin is redirected from /dev/null (the "skip this patch? [n]" question).
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 3685312..ae30160 100644 --- a/Mk/bsd.port.mk +++ b/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.181 1995/10/04 11:13:52 asami Exp $ +# $Id: bsd.port.mk,v 1.165.2.2 1995/10/05 20:58:10 davidg Exp $ # # Please view me with 4 column tabs! @@ -265,6 +265,10 @@ PATCH_DIST_ARGS?= -d ${WRKSRC} -E ${PATCH_DIST_STRIP} PATCH_ARGS?= -d ${WRKSRC} --forward --quiet -E ${PATCH_STRIP} PATCH_DIST_ARGS?= -d ${WRKSRC} --forward --quiet -E ${PATCH_DIST_STRIP} .endif +.if defined(BATCH) +PATCH_ARGS+= --batch +PATCH_DIST_ARGS+= --batch +.endif .if defined(PATCH_CHECK_ONLY) PATCH_ARGS+= -C |