$|=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
}
}
-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";