summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Pennock <pdp@exim.org>2017-02-02 15:38:14 -0500
committerPhil Pennock <pdp@exim.org>2017-02-02 15:38:14 -0500
commitab5ea82dc0f52a4aad8ea9b99cc82545be525ae0 (patch)
treebd1948247014762dd35705e7271d5586532d44f3
parentb84580f1e38405e0a94f8d8f41df0cdaf8d0115f (diff)
downloadexim4-ab5ea82dc0f52a4aad8ea9b99cc82545be525ae0.tar.gz
RELEASE EXPERIMENT: more compression, .xz variant
Making this change natively in the release branch, not master branch, as an experiment for the 4.89 release: make the .xz tarball variant too, and work harder on compressing our files for distribution.
-rwxr-xr-xrelease-process/scripts/mk_exim_release12
1 files changed, 12 insertions, 0 deletions
diff --git a/release-process/scripts/mk_exim_release b/release-process/scripts/mk_exim_release
index f6cd33c7e..95f9f9050 100755
--- a/release-process/scripts/mk_exim_release
+++ b/release-process/scripts/mk_exim_release
@@ -375,6 +375,10 @@ sub create_tar_files {
print "Creating: ${pkgs}/${dirname}.tar.lz\n" if ($verbose || $debug);
system("$tar cf ${pkgs}/${dirname}.tar.lz --lzip -C ${pkgdirs} ${dirname}")
}
+ if ($context->{compressors}{xz}) {
+ print "Creating: ${pkgs}/${dirname}.tar.xz\n" if ($verbose || $debug);
+ system("$tar cf ${pkgs}/${dirname}.tar.xz --xz -C ${pkgdirs} ${dirname}")
+ }
}
}
@@ -394,6 +398,7 @@ MAIN: {
compressors => {
gzip => 1,
bzip2 => 1,
+ xz => 1,
lzip => 0,
},
build_docs => 1,
@@ -402,6 +407,13 @@ MAIN: {
my $delete;
my $cleanup = 1;
##$ENV{'PATH'} = '/opt/local/bin:' . $ENV{'PATH'};
+ # We are creating files for mass distribution, so work harder to make smaller files.
+ $ENV{'GZIP'} = '-9';
+ $ENV{'BZIP2'} = '-9';
+ # xz documents minimum file sizes for levels higher than -6 to be useful and each
+ # requires more RAM on the decompressing system. Exim tarball currently 24MiB so
+ # using -8.
+ $ENV{'XZ_DEFAULTS'} = '-8';
GetOptions(
'directory=s' => \$context->{directory},