summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2015-10-28 18:39:10 +0100
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2015-10-28 18:40:43 +0100
commit4e9560fcc17a84da736bf8c8bdaf90f013dbddf4 (patch)
tree4753c0c7c2277b575aaed73b9939fcd1ff688f6b /packaging
parent09683b9d3f0ea6ccb76d512fa03a2b24d51163b3 (diff)
downloadrabbitmq-server-git-4e9560fcc17a84da736bf8c8bdaf90f013dbddf4.tar.gz
packaging/standalone: Sort files in final archive
While here, switch from gzip to xz as the compression format. This saves around 16% of file size.
Diffstat (limited to 'packaging')
-rw-r--r--packaging/standalone/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/packaging/standalone/Makefile b/packaging/standalone/Makefile
index 99cc982e55..e604f8e05f 100644
--- a/packaging/standalone/Makefile
+++ b/packaging/standalone/Makefile
@@ -88,12 +88,14 @@ dist:
patch -o $(RLS_DIR)/erts-$(ERTS_VSN)/bin/erl $(RLS_DIR)/erts-$(ERTS_VSN)/bin/erl.src < erl.diff
rm -f $(RLS_DIR)/erts-$(ERTS_VSN)/bin/erl.orig
- tar -zcf $(TARGET_TARBALL).tar.gz -C $(TARGET_DIR)/release $(TARGET_DIR)
+ cd $(TARGET_DIR)/release && \
+ find $(TARGET_DIR) -print0 | LC_COLLATE=C sort -z | \
+ xargs -0 tar -cnf - | xz > $(CURDIR)/$(TARGET_TARBALL).tar.xz
rm -rf $(SOURCE_DIR) $(TARGET_DIR)
if test "$(PACKAGES_DIR)"; then \
mkdir -p "$(PACKAGES_DIR)"; \
- mv $(TARGET_TARBALL).tar.gz "$(PACKAGES_DIR)"; \
+ mv $(TARGET_TARBALL).tar.xz "$(PACKAGES_DIR)"; \
fi
clean: clean_partial