[include] host.mk: introduce PATCH which refers to either gpatch or patch
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 7 Oct 2010 11:33:12 +0000 (11:33 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 7 Oct 2010 11:33:12 +0000 (11:33 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23287 3c298f89-4303-0410-b956-a3cf2f4a3e73

include/host.mk

index f3e47c8..9b8a32b 100644 (file)
@@ -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
This page took 0.023262 seconds and 4 git commands to generate.