From ae997f9df5715419de006f6b0eed5c65aa567622 Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Wed, 11 Oct 1995 09:25:58 +0000 Subject: 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). --- Mk/bsd.port.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 36853128195b..ae301608c862 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 -- cgit v1.2.3