fix tar detection

SVN-Revision: 5061
This commit is contained in:
Felix Fietkau 2006-10-13 22:47:39 +00:00
parent 550f17100a
commit 518b039995
1 changed files with 4 additions and 3 deletions

View File

@ -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" >> $@; \
)