aboutsummaryrefslogtreecommitdiffstats
path: root/compress_files
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2013-06-21 23:22:44 +0000
committerColin Guthrie <colin@mageia.org>2013-12-22 14:24:41 +0000
commit87fe534bbd1720d1bc6beb31592c1441a40a9ae7 (patch)
tree3df4147ae680d360cb600f16c2bdfbdff588db3a /compress_files
parenta57625e6069be36650ebe483e4cc980d975aad7b (diff)
downloadspec-helper-87fe534bbd1720d1bc6beb31592c1441a40a9ae7.tar
spec-helper-87fe534bbd1720d1bc6beb31592c1441a40a9ae7.tar.gz
spec-helper-87fe534bbd1720d1bc6beb31592c1441a40a9ae7.tar.bz2
spec-helper-87fe534bbd1720d1bc6beb31592c1441a40a9ae7.tar.xz
spec-helper-87fe534bbd1720d1bc6beb31592c1441a40a9ae7.zip
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.
Diffstat (limited to 'compress_files')
-rwxr-xr-xcompress_files4
1 files changed, 3 insertions, 1 deletions
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.