Abstracted find to $(FIND) to allow use of gfind on non-GNU systems.
Signed-off-by: Andy Boyett <agb-openwrt@padded-cell.net> SVN-Revision: 9659
This commit is contained in:
parent
3a4d04f6ec
commit
40ab15892d
1 changed files with 3 additions and 0 deletions
|
@ -30,6 +30,9 @@ $(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk
|
||||||
TAR=`which gtar 2>/dev/null`; \
|
TAR=`which gtar 2>/dev/null`; \
|
||||||
[ -n "$$TAR" -a -x "$$TAR" ] || TAR=`which tar 2>/dev/null`; \
|
[ -n "$$TAR" -a -x "$$TAR" ] || TAR=`which tar 2>/dev/null`; \
|
||||||
echo "TAR:=$$TAR" >> $@; \
|
echo "TAR:=$$TAR" >> $@; \
|
||||||
|
FIND=`which gfind 2>/dev/null`; \
|
||||||
|
[ -n "$$FIND" -a -x "$$FIND" ] || FIND=`which find 2>/dev/null`; \
|
||||||
|
echo "FIND:=$$FIND" >> $@; \
|
||||||
echo "BASH:=$(shell which bash)" >> $@; \
|
echo "BASH:=$(shell which bash)" >> $@; \
|
||||||
if find -L /tmp -maxdepth 0 >/dev/null 2>/dev/null; then \
|
if find -L /tmp -maxdepth 0 >/dev/null 2>/dev/null; then \
|
||||||
echo 'FIND_L=find -L $$(1)' >>$@; \
|
echo 'FIND_L=find -L $$(1)' >>$@; \
|
||||||
|
|
Loading…
Reference in a new issue