From ae22034d0d711881b0cbf1e8be3090cad486bb97 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 23 Mar 2017 21:11:41 +0100 Subject: mkhelp: disable compression if the perl gzip module is unavailable This is nowadays included with the base perl distribution, but wasn't prior to about perl 5.14 --- src/mkhelp.pl | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/mkhelp.pl') diff --git a/src/mkhelp.pl b/src/mkhelp.pl index 8b7f72157..4b540744c 100644 --- a/src/mkhelp.pl +++ b/src/mkhelp.pl @@ -113,8 +113,19 @@ print <import(); + 1; + }; + print STDERR "Warning: compression requested but Gzip is not available\n" if (!$c) +} + +if($c) +{ my $content = join("", @out); my $gzippedContent; IO::Compress::Gzip::gzip( -- cgit v1.2.3