projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move out autotools touching stuff to a macro
[openwrt.git]
/
include
/
host.mk
diff --git
a/include/host.mk
b/include/host.mk
index
3a5fd96
..
3100ce4
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" >> $@; \
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 \
- echo "TAR_WILDCARDS:=--wildcards" >> $@; \
- fi; \
- TAR=`which gtar tar | head -n 1`; \
+ TAR=`which gtar`; \
+ [ -n "$$TAR" -a -x "$$TAR" ] || TAR=`which tar`; \
echo "TAR:=$$TAR" >> $@; \
echo "TAR:=$$TAR" >> $@; \
+ ZCAT=`which gzcat`; \
+ [ -n "$$ZCAT" -a -x "$$ZCAT" ] || ZCAT=`which zcat`; \
+ echo "ZCAT:=$$ZCAT" >> $@; \
)
)
This page took
0.019389 seconds
and
4
git commands to generate.