include: download.mk: correct tar argument order when packing checkouts

GNU TAR v1.26 will fail with "no such file or directory" errors when the
output file does not immediately follow the -f switch.

SVN-Revision: 34460
This commit is contained in:
Jo-Philipp Wich 2012-12-02 18:35:47 +00:00
parent 740daabdfd
commit 5d253542d7

View File

@ -29,8 +29,8 @@ $(strip \
endef endef
# code for creating tarballs from cvs/svn/git/bzr/hg/darcs checkouts - useful for mirror support # code for creating tarballs from cvs/svn/git/bzr/hg/darcs checkouts - useful for mirror support
dl_pack/bz2=$(TAR) cfj $(1) $(2) dl_pack/bz2=$(TAR) cjf $(1) $(2)
dl_pack/gz=$(TAR) cfz $(1) $(2) dl_pack/gz=$(TAR) czf $(1) $(2)
dl_pack/unknown=echo "ERROR: Unknown pack format for file $(1)"; false dl_pack/unknown=echo "ERROR: Unknown pack format for file $(1)"; false
define dl_pack define dl_pack
$(if $(dl_pack/$(call ext,$(1))),$(dl_pack/$(call ext,$(1))),$(dl_pack/unknown)) $(if $(dl_pack/$(call ext,$(1))),$(dl_pack/$(call ext,$(1))),$(dl_pack/unknown))