trying to use xz on manuals.

From: Norikatsu Shigemura <nork_at_FreeBSD.org>
Date: Tue, 7 Dec 2010 02:03:50 +0900
Hi.

	I tested like following:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--- share/mk/bsd.own.mk.orig    2010-10-06 12:22:05.747697000 +0900
+++ share/mk/bsd.own.mk 2010-12-06 23:40:59.058632584 +0900
_at__at_ -169,8 +169,8 _at__at_
 STRIP?=                -s
 .endif
 
-COMPRESS_CMD?= gzip -cn
-COMPRESS_EXT?= .gz
+COMPRESS_CMD?= xz -c
+COMPRESS_EXT?= .xz
 
 .if !defined(_WITHOUT_SRCCONF)
 #
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

	So I got following results:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
$ find /usr/share/doc /usr/share/info /usr/share/man /usr/share/openssl/man -name \*.gz | xargs stat -f %z | awk '{sum+=$0} END {print sum, NR}'
31186768 8629
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
$ find /usr/share/doc /usr/share/info /usr/share/man /usr/share/openssl/man -name \*.xz | xargs stat -f %z | awk '{sum+=$0} END {print sum, NR}'
30010640 8631
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

	.xz smaller than .gz, but effective is about 96.2%:-(.

Different from files.gz to files.xz:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+/usr/share/man/man3/log2.3.xz
+/usr/share/man/man3/log2f.3.xz
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Sorry, .gz environment is just older)


	And I noticed that tooooooo long ObsoleteFiles.inc:-(.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# YYYYMMDD: Remove *.gz (Replaced by *.xz)
OLD_FILES+=usr/share/doc/papers/beyond43.ascii.gz
OLD_FILES+=usr/share/doc/papers/bio.ascii.gz
OLD_FILES+=usr/share/doc/papers/contents.ascii.gz
	:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

	Humm.. JFYI.

-- 
Norikatsu Shigemura <nork_at_FreeBSD.org>
Received on Mon Dec 06 2010 - 16:03:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:09 UTC