mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-23 23:23:31 +00:00
build: add support for packing version control downloads with xz
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40446
This commit is contained in:
parent
25a1dcb37b
commit
d1969d761f
@ -31,6 +31,7 @@ endef
|
||||
# code for creating tarballs from cvs/svn/git/bzr/hg/darcs checkouts - useful for mirror support
|
||||
dl_pack/bz2=$(TAR) cjf $(1) $(2)
|
||||
dl_pack/gz=$(TAR) czf $(1) $(2)
|
||||
dl_pack/xz=$(TAR) c $(2) | xz -zc > $(1)
|
||||
dl_pack/unknown=echo "ERROR: Unknown pack format for file $(1)"; false
|
||||
define dl_pack
|
||||
$(if $(dl_pack/$(call ext,$(1))),$(dl_pack/$(call ext,$(1))),$(dl_pack/unknown))
|
||||
|
Loading…
Reference in New Issue
Block a user