mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-17 15:04:42 +02:00
fix tar detection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5061 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
dfe52f0a79
commit
f5ccb55568
@ -22,10 +22,11 @@ $(TOPDIR)/.host.mk: $(INCLUDE_DIR)/host.mk
|
||||
echo "HOST_OS:=$$HOST_OS" > $@; \
|
||||
echo "HOST_ARCH:=$$HOST_ARCH" >> $@; \
|
||||
echo "GNU_HOST_NAME:=$$GNU_HOST_NAME" >> $@; \
|
||||
if tar --version 2>&1 | grep 'GNU' >/dev/null; then \
|
||||
TAR=`which gtar`; \
|
||||
[ -n "$$TAR" -a -x "$$TAR" ] || TAR=`which tar`; \
|
||||
echo "TAR:=$$TAR" >> $@; \
|
||||
if $$TAR --version 2>&1 | grep 'GNU' >/dev/null; then \
|
||||
echo "TAR_WILDCARDS:=--wildcards" >> $@; \
|
||||
fi; \
|
||||
TAR=`which gtar tar | head -n 1`; \
|
||||
echo "TAR:=$$TAR" >> $@; \
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user