[tz] [PROPOSED PATCH 2/2] Use lz format for new tarball

Paul Eggert eggert at cs.ucla.edu
Mon Aug 22 03:56:31 UTC 2016


* Makefile (maintainer-clean): Remove *.tar.lz too.
(tzdb-$(VERSION).tar.lz): Rename from tzdb-$(VERSION).tar.gz,
and use lzip rather than gzip.  All uses changed.
* NEWS: Document this.
---
 Makefile | 12 ++++++------
 NEWS     |  5 +++--
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/Makefile b/Makefile
index da697b7..98024d0 100644
--- a/Makefile
+++ b/Makefile
@@ -573,7 +573,7 @@ clean:		clean_misc
 maintainer-clean: clean
 		@echo 'This command is intended for maintainers to use; it'
 		@echo 'deletes files that may need special tools to rebuild.'
-		rm -f leapseconds $(MANTXTS) $(TZS) *.asc *.tar.gz
+		rm -f leapseconds $(MANTXTS) $(TZS) *.asc *.tar.[gl]z
 
 names:
 		@echo $(ENCHILADA)
@@ -673,7 +673,7 @@ check_time_t_alternatives:
 		rm -fr time_t.dir
 
 tarballs:	tzcode$(VERSION).tar.gz tzdata$(VERSION).tar.gz \
-		tzdb-$(VERSION).tar.gz
+		tzdb-$(VERSION).tar.lz
 
 tzcode$(VERSION).tar.gz: set-timestamps.out
 		LC_ALL=C && export LC_ALL && \
@@ -686,16 +686,16 @@ tzdata$(VERSION).tar.gz: set-timestamps.out
 		tar $(TARFLAGS) -cf - $(COMMON) $(DATA) $(MISC) $(TZS) | \
 		  gzip $(GZIPFLAGS) > $@
 
-tzdb-$(VERSION).tar.gz: set-timestamps.out
+tzdb-$(VERSION).tar.lz: set-timestamps.out
 		rm -fr tzdb
 		mkdir tzdb
 		ln $(COMMON) $(DOCS) $(SOURCES) $(DATA) $(MISC) $(TZS) tzdb
 		touch -cmr $$(ls -t tzdb/* | sed 1q) tzdb
 		LC_ALL=C && export LC_ALL && \
-		tar $(TARFLAGS) -cf - tzdb | gzip $(GZIPFLAGS) > $@
+		tar $(TARFLAGS) -cf - tzdb | lzip -9 > $@
 
 signatures:	tzcode$(VERSION).tar.gz.asc tzdata$(VERSION).tar.gz.asc \
-		tzdb-$(VERSION).tar.gz.asc
+		tzdb-$(VERSION).tar.lz.asc
 
 tzcode$(VERSION).tar.gz.asc: tzcode$(VERSION).tar.gz
 		gpg --armor --detach-sign $?
@@ -703,7 +703,7 @@ tzcode$(VERSION).tar.gz.asc: tzcode$(VERSION).tar.gz
 tzdata$(VERSION).tar.gz.asc: tzdata$(VERSION).tar.gz
 		gpg --armor --detach-sign $?
 
-tzdb-$(VERSION).tar.gz.asc: tzdb-$(VERSION).tar.gz
+tzdb-$(VERSION).tar.lz.asc: tzdb-$(VERSION).tar.lz
 		gpg --armor --detach-sign $?
 
 typecheck:
diff --git a/NEWS b/NEWS
index 18b7c9d..61213b0 100644
--- a/NEWS
+++ b/NEWS
@@ -33,13 +33,14 @@ Unreleased, experimental changes
     'make check' now checks that zdump generates this output.
 
     A new distribution format is available in the tarball
-    tzdb-VERSION.tar.gz and the signature tzdb-VERSION.tar.gz.asc.
+    tzdb-VERSION.tar.lz and the signature tzdb-VERSION.tar.lz.asc.
     The new tarball has the contents of tzcodeVERSION.tar.gz and
     tzdataVERSION.tar.gz, in a single top-level directory 'tzdb' with
     all other files under this directory, as is typical for software
     distributions.  The new format is intended to replace the old
     tarball pair.  The old format will continue to be distributed for
-    a while.
+    a while.  The new format uses lzip compression, which is
+    significantly smaller than gzip and is simpler than xz.
 
   Changes to documentation and commentary
 
-- 
2.5.5



More information about the tz mailing list