projects
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
dfe52f0
)
fix tar detection
author
nbd
<nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 13 Oct 2006 22:47:39 +0000
(22:47 +0000)
committer
nbd
<nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 13 Oct 2006 22:47:39 +0000
(22:47 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5061
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
include/host.mk
patch
|
blob
|
history
diff --git
a/include/host.mk
b/include/host.mk
index
3a5fd96
..
1152218
100644
(file)
--- a/
include/host.mk
+++ b/
include/host.mk
@@
-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" >> $@; \
)
This page took
0.021065 seconds
and
4
git commands to generate.