From 87fe534bbd1720d1bc6beb31592c1441a40a9ae7 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Fri, 21 Jun 2013 23:22:44 +0000 Subject: Abort with an error message if compress_files has problems compressing No longer use -9 when compressing with xz, because this creates compressed files that require massive amounts of RAM to decompress and makes no difference in size on tiny man pages. Note: This commit was accidentally missed when importing from subversion and has now been restored. --- compress_files | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compress_files b/compress_files index cd535c7..1c87ca2 100755 --- a/compress_files +++ b/compress_files @@ -112,10 +112,12 @@ if (@files) { my @command = $ext eq '.gz' ? qw/gzip -9f/ : $ext eq '.bz2' ? qw/bzip2 -9f/ : $ext eq '.lzma' ? qw/lzma -9f --text/ - : $ext eq '.xz' ? qw/xz -9f/ + : $ext eq '.xz' ? qw/xz -f/ : qw// ; xargs(\@files, @command); + die "Something wrong with the man/info file compression" + if $?; } # Fix up symlinks that were pointing to the uncompressed files. -- cgit v1.2.1