summaryrefslogtreecommitdiff
path: root/include
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
commit5d253542d7a229523cdcd6462027c34106f4606d (patch)
tree76cf6f0d63680a53b1b0e09f1d2b5316696164ae /include
parent740daabdfd42eba5464945ac80e2e41b95460db3 (diff)
downloadmtk-20170518-5d253542d7a229523cdcd6462027c34106f4606d.zip
mtk-20170518-5d253542d7a229523cdcd6462027c34106f4606d.tar.gz
mtk-20170518-5d253542d7a229523cdcd6462027c34106f4606d.tar.bz2
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
Diffstat (limited to 'include')
-rw-r--r--include/download.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/download.mk b/include/download.mk
index 823ddf9..372db03 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))