summaryrefslogtreecommitdiff
path: root/Porting/makerel
diff options
context:
space:
mode:
authorDavid Golden <dagolden@cpan.org>2010-03-05 15:18:48 -0500
committerDavid Golden <dagolden@cpan.org>2010-03-08 06:52:21 -0500
commit1baeb4021808a25a79f3d2b37144610045a5c5c9 (patch)
treec91bd590371fafac52080244c10faf6228ba2db1 /Porting/makerel
parent826e305c121e97f2805978bb1fece36c68f57daa (diff)
downloadperl-1baeb4021808a25a79f3d2b37144610045a5c5c9.tar.gz
add makerel option to skip tarball creation
Diffstat (limited to 'Porting/makerel')
-rw-r--r--Porting/makerel7
1 files changed, 5 insertions, 2 deletions
diff --git a/Porting/makerel b/Porting/makerel
index d0bf4eff95..6c6ee955eb 100644
--- a/Porting/makerel
+++ b/Porting/makerel
@@ -30,17 +30,18 @@ use Getopt::Std;
$|=1;
sub usage { die <<EOF; }
-usage: $0 [ -r rootdir ] [-s suffix ] [ -b ]
+usage: $0 [ -r rootdir ] [-s suffix ] [ -b ] [ -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 concatenaion of the local_patches entry
in patchlevel.h (or blank, if none)
-b make a .bz2 file in addtion to a .gz file
+ -n do not make any tarballs, just the directory
EOF
my %opts;
-getopts('br:s:', \%opts) or usage;
+getopts('bnr:s:', \%opts) or usage;
@ARGV && usage;
$relroot = defined $opts{r} ? $opts{r} : "..";
@@ -186,6 +187,8 @@ system("chmod +w @writables") == 0
chdir ".." or die $!;
+exit if $opts{n};
+
my $src = (-e $perl) ? $perl : 'perl'; # 'perl' in maint branch
print "Creating and compressing the tar.gz file...\n";