diff options
author | Leon Timmermans <fawaka@gmail.com> | 2022-06-10 17:42:53 +0200 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2022-07-07 10:59:24 +1000 |
commit | ce1456ba1cb0a21138b5550c726ad57762d111b7 (patch) | |
tree | 2c10f6a09a0f8edcf1988074c0bb6f08d3904f4b /Porting | |
parent | 07e16c7421986e429b574d610d937b89a88ef2db (diff) | |
download | perl-ce1456ba1cb0a21138b5550c726ad57762d111b7.tar.gz |
Allow building release in an unclean directory
Not allowing this may have made sense back in 1997 when it was added, but we've
had an explicit check for this (t/porting/manifest.t) since 2009. Now it's only
getting in the way by requiring a git clean before building a release.
Diffstat (limited to 'Porting')
-rwxr-xr-x | Porting/makerel | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/Porting/makerel b/Porting/makerel index 03652aaa93..2d9ce10d68 100755 --- a/Porting/makerel +++ b/Porting/makerel @@ -24,7 +24,7 @@ use warnings; # # Tim Bunce, June 1997 -use ExtUtils::Manifest qw(fullcheck); +use ExtUtils::Manifest qw(manicheck); $ExtUtils::Manifest::Quiet = 1; use Getopt::Std; use Digest::SHA; @@ -87,26 +87,12 @@ print "\nMaking a release for $perl in $relroot/$reldir\n\n"; cleanup($relroot, $reldir) if $opts{c}; print "Cross-checking the MANIFEST...\n"; -my ($missfile, $missentry) = fullcheck(); -@$missentry - = grep {$_ !~ m!^\.(?:git|github|mailmap)! and $_ !~ m!(?:/|^)\.gitignore!} @$missentry; -if (@$missfile ) { +my @missfile = manicheck(); +if (@missfile) { warn "Can't make a release with MANIFEST files missing:\n"; - warn "\t".$_."\n" for (@$missfile); + warn "\t".$_."\n" for (@missfile); } -if (@$missentry ) { - warn "Can't make a release with files not listed in MANIFEST\n"; - warn "\t".$_."\n" for (@$missentry); - -} -if ("@$missentry" =~ m/\.orig\b/) { - # Handy listing of find command and .orig files from patching work. - # I tend to run 'xargs rm' and copy and paste the file list. - my $cmd = "find . -name '*.orig' -print"; - print "$cmd\n"; - system($cmd); -} -die "Aborted.\n" if @$missentry or @$missfile; +die "Aborted.\n" if @missfile; print "\n"; # VMS no longer has hardcoded version numbers descrip.mms |