aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-10-07 11:33:12 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-10-07 11:33:12 +0000
commitbbcec773330d331b998a6764a8801249698276c3 (patch)
tree8f555763103630868d3561a090dfff75bf1593da /include
parentcd91f0efcdd49a6309494b4318027ad1acc12583 (diff)
downloadupstream-bbcec773330d331b998a6764a8801249698276c3.tar.gz
upstream-bbcec773330d331b998a6764a8801249698276c3.tar.bz2
upstream-bbcec773330d331b998a6764a8801249698276c3.zip
[include] host.mk: introduce PATCH which refers to either gpatch or patch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23287 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/host.mk3
1 files changed, 3 insertions, 0 deletions
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