aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChmouel Boudjnah <chmouel@mandriva.org>2000-03-24 14:18:51 +0000
committerChmouel Boudjnah <chmouel@mandriva.org>2000-03-24 14:18:51 +0000
commit0d724a87a3688d22816b31f80d6b6255ce94fb96 (patch)
tree801652cf8500e919eaeb21bdd2ae3ba0850a0603
parent5eb3b91e8c2b79808eab9026409caa27bc8c3f63 (diff)
downloadspec-helper-0d724a87a3688d22816b31f80d6b6255ce94fb96.tar
spec-helper-0d724a87a3688d22816b31f80d6b6255ce94fb96.tar.gz
spec-helper-0d724a87a3688d22816b31f80d6b6255ce94fb96.tar.bz2
spec-helper-0d724a87a3688d22816b31f80d6b6255ce94fb96.tar.xz
spec-helper-0d724a87a3688d22816b31f80d6b6255ce94fb96.zip
If we found gzip file decompress and bzip2 thme.
-rwxr-xr-xcompress_files3
1 files changed, 3 insertions, 0 deletions
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=();