summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-10-26 22:03:37 +0000
committerrubidium <rubidium@openttd.org>2010-10-26 22:03:37 +0000
commitbedcbfe2ba170472afc5aa186af2ab66a5a0d313 (patch)
treec34fcc06d8bd763d8bacd4b719c6a19bc6bd5c7f
parent61e419e27f2eb67ed66ef3da5606fb164a4791e0 (diff)
downloadopenttd-bedcbfe2ba170472afc5aa186af2ab66a5a0d313.tar.xz
(svn r21042) -Change: make it possible to make .tar.xz bundles
-rw-r--r--Makefile.bundle.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.bundle.in b/Makefile.bundle.in
index e6ec689b2..bb4b09314 100644
--- a/Makefile.bundle.in
+++ b/Makefile.bundle.in
@@ -136,6 +136,13 @@ bundle_lzma: bundle
$(Q)cd "$(BUNDLES_DIR)/.lzma" && tar --lzma -c$(shell if test -n "$(VERBOSE)"; then echo 'v'; fi)f "$(BUNDLES_DIR)/$(BUNDLE_NAME).tar.lzma" "$(BUNDLE_NAME)"
$(Q)rm -rf "$(BUNDLES_DIR)/.lzma"
+bundle_xz: bundle
+ @echo '[BUNDLE] Creating $(BUNDLE_NAME).tar.xz'
+ $(Q)mkdir -p "$(BUNDLES_DIR)/.xz/$(BUNDLE_NAME)"
+ $(Q)cp -R "$(BUNDLE_DIR)/"* "$(BUNDLES_DIR)/.xz/$(BUNDLE_NAME)/"
+ $(Q)cd "$(BUNDLES_DIR)/.xz" && tar --xz -c$(shell if test -n "$(VERBOSE)"; then echo 'v'; fi)f "$(BUNDLES_DIR)/$(BUNDLE_NAME).tar.xz" "$(BUNDLE_NAME)"
+ $(Q)rm -rf "$(BUNDLES_DIR)/.xz"
+
bundle_lha: bundle
@echo '[BUNDLE] Creating $(BUNDLE_NAME).lha'
$(Q)mkdir -p "$(BUNDLES_DIR)/.lha/$(BUNDLE_NAME)"