From: Jo-Philipp Wich Date: Thu, 7 Oct 2010 11:33:12 +0000 (+0000) Subject: [include] host.mk: introduce PATCH which refers to either gpatch or patch X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=3589d40a3c8ee716683147e8e4175e3879663687;ds=inline [include] host.mk: introduce PATCH which refers to either gpatch or patch SVN-Revision: 23287 --- diff --git a/include/host.mk b/include/host.mk index f3e47c8723..9b8a32b672 100644 --- a/include/host.mk +++ b/include/host.mk @@ -59,6 +59,9 @@ $(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk else \ echo 'XARGS:=xargs' >> $@; \ fi; \ + PATCH=`which gpatch 2>/dev/null`; \ + [ -n "$$PATCH" -a -x "$$PATCH" ] || PATCH=`which patch 2>/dev/null`; \ + echo "PATCH:=$$PATCH" >> $@; \ ) endif