From 0d724a87a3688d22816b31f80d6b6255ce94fb96 Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Fri, 24 Mar 2000 14:18:51 +0000 Subject: If we found gzip file decompress and bzip2 thme. --- compress_files | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compress_files') diff --git a/compress_files b/compress_files index eb437cf..2112765 100755 --- a/compress_files +++ b/compress_files @@ -113,6 +113,9 @@ foreach $sofile (@sofiles) { push @files, split(/\n/,`find usr/info usr/share/info usr/man usr/share/man usr/X11*/man usr/lib/perl5/man -type f ! -name "*.gz" -a ! -name "*.bz2" ! -name 'dir' ! -name 'whatis' 2>/dev/null || true`); +push @gz_files, split(/\n/,`find usr/info usr/share/info usr/man usr/share/man usr/X11*/man usr/lib/perl5/man -type f -name "*.gz" 2>/dev/null || true`); +if (@gz_files) {xargs(\@gz_files,"gzip", "-d"); $? ? die "Something wrong with the decompression of the gzip man/info file, fix this ASAP" : exec($0);} + # Exclude files from compression. if (@files && defined($ENV{EXCLUDE_FROM_COMPRESS})) { @new=(); -- cgit v1.2.1