move common unpacking code to unpack.mk, replace zcat with $(ZCAT) for systems that use gzcat instead
[openwrt.org/openwrt.git] / include / host.mk
blob:a/include/host.mk -> blob:b/include/host.mk
--- a/include/host.mk
+++ b/include/host.mk
@@ -28,6 +28,9 @@
 		if $$TAR --version 2>&1 | grep 'GNU' >/dev/null; then \
 			echo "TAR_WILDCARDS:=--wildcards" >> $@; \
 		fi; \
+		ZCAT=`which gzcat`; \
+		[ -n "$$ZCAT" -a -x "$$ZCAT" ] || ZCAT=`which zcat`; \
+		echo "ZCAT:=$$ZCAT" >> $@; \
 	)
 
 

comments