Permalink
Browse files

Removed bzip option from makerel

xz compresses better and decompresses faster, gzip is still more
compatible and uses less memory. In the recent years we've
archived perl as both gzip, bzip2 and xz which doesn't make much
sense. This is a followup to f276fda.

closes [perl #132381].
  • Loading branch information...
abh authored and karenetheridge committed Oct 31, 2017
1 parent fab80bc commit c6bee77e5b388e624827e6c745733c2a7407ae15
Showing with 1 addition and 14 deletions.
  1. +1 −14 Porting/makerel
View
@@ -28,13 +28,12 @@ use Getopt::Std;
$|=1;
sub usage { die <<EOF; }
usage: $0 [ -r rootdir ] [-s suffix ] [ -b ] [ -n ]
usage: $0 [ -r rootdir ] [-s suffix ] [ -x ] [ -n ]
-r rootdir directory under which to create the build dir and tarball
defaults to '..'
-s suffix suffix to append to to the perl-x.y.z dir and tarball name
defaults to the concatenation of the local_patches entry
in patchlevel.h (or blank, if none)
-b make a .bz2 file in addition to a .gz file
-x make a .xz file in addition to a .gz file
-n do not make any tarballs, just the directory
EOF
@@ -206,18 +205,6 @@ if ($have_7z) {
}
}
if ($opts{b}) {
if ($have_7z) {
print "Creating and compressing the tar.bz2 file with 7z...\n";
$cmd = "tar cf - $reldir | 7z a -tbzip2 -mx9 -bd -si $reldir.tar.bz2";
system($cmd) == 0 or die "$cmd failed";
} else {
print "Creating and compressing the tar.bz2 file...\n";
$cmd = "tar cf - $reldir | bzip2 > $reldir.tar.bz2";
system($cmd) == 0 or die "$cmd failed";
}
}
if ($opts{x}) {
print "Creating and compressing the tar.gz file with 7z...\n";
$cmd = "tar cf - $reldir | xz -z -c > $reldir.tar.xz";

0 comments on commit c6bee77

Please sign in to comment.