release: use xz compression

This produces tarballs that are roughly 30% smaller.
This commit is contained in:
David Bremner 2019-03-19 07:08:19 -03:00
parent 1f82039e0d
commit 4bfbd5baa1
2 changed files with 3 additions and 3 deletions

View file

@ -40,9 +40,9 @@ DEB_TAG=debian/$(UPSTREAM_TAG)-1
RELEASE_HOST=notmuchmail.org RELEASE_HOST=notmuchmail.org
RELEASE_DIR=/srv/notmuchmail.org/www/releases RELEASE_DIR=/srv/notmuchmail.org/www/releases
RELEASE_URL=https://notmuchmail.org/releases RELEASE_URL=https://notmuchmail.org/releases
TAR_FILE=$(PACKAGE)-$(VERSION).tar.gz TAR_FILE=$(PACKAGE)-$(VERSION).tar.xz
ELPA_FILE:=$(PACKAGE)-emacs-$(ELPA_VERSION).tar ELPA_FILE:=$(PACKAGE)-emacs-$(ELPA_VERSION).tar
DEB_TAR_FILE=$(PACKAGE)_$(VERSION).orig.tar.gz DEB_TAR_FILE=$(PACKAGE)_$(VERSION).orig.tar.xz
SHA256_FILE=$(TAR_FILE).sha256.asc SHA256_FILE=$(TAR_FILE).sha256.asc
DETACHED_SIG_FILE=$(TAR_FILE).asc DETACHED_SIG_FILE=$(TAR_FILE).asc

View file

@ -36,7 +36,7 @@ $(TAR_FILE):
--transform s_^_$(PACKAGE)-$(VERSION)/_ \ --transform s_^_$(PACKAGE)-$(VERSION)/_ \
--transform 's_.tmp$$__' --mtime=@$$ct version.tmp --transform 's_.tmp$$__' --mtime=@$$ct version.tmp
rm version.tmp rm version.tmp
gzip -n < $(TAR_FILE).tmp > $(TAR_FILE) xz -C sha256 -9 < $(TAR_FILE).tmp > $(TAR_FILE)
@echo "Source is ready for release in $(TAR_FILE)" @echo "Source is ready for release in $(TAR_FILE)"
$(SHA256_FILE): $(TAR_FILE) $(SHA256_FILE): $(TAR_FILE)