aboutsummaryrefslogtreecommitdiffstats
path: root/include/download.mk
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-12-02 18:35:47 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-12-02 18:35:47 +0000
commitab24863321c402d884e4b4d43a4faa87825b1d53 (patch)
tree13ea4f93dd51e5459bed422652a37b3645f9405c /include/download.mk
parent7a03e9cd3aed526504461a4b03057f6cba19a52e (diff)
downloadupstream-ab24863321c402d884e4b4d43a4faa87825b1d53.tar.gz
upstream-ab24863321c402d884e4b4d43a4faa87825b1d53.tar.bz2
upstream-ab24863321c402d884e4b4d43a4faa87825b1d53.zip
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. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34460 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include/download.mk')
-rw-r--r--include/download.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/download.mk b/include/download.mk
index 823ddf93f8..372db03194 100644
--- a/include/download.mk
+++ b/include/download.mk
@@ -29,8 +29,8 @@ $(strip \
endef
# 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/gz=$(TAR) cfz $(1) $(2)
+dl_pack/bz2=$(TAR) cjf $(1) $(2)
+dl_pack/gz=$(TAR) czf $(1) $(2)
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))