use File::Spec;
use Parse::CPAN::Meta;
-my $corelist_file = 'lib/Module/CoreList.pm';
+my $corelist_file = 'ext/Module-CoreList/lib/Module/CoreList.pm';
my %lines;
my %module_to_file;
write_corelist($corelist);
-warn "All done. Please check over lib/Module/CoreList.pm carefully before committing. Thanks!\n";
+warn "All done. Please check over $corelist_file carefully before committing. Thanks!\n";
sub write_corelist {
my $content = shift;
- open ( my $clfh, ">", "lib/Module/CoreList.pm") || die "Failed to open lib/Module/CoreList.pm for writing: $!";
+ open (my $clfh, ">", $corelist_file) || die "Failed to open $corelist_file for writing: $!";
print $clfh $content || die "Failed to write the new CoreList.pm: $!";
close($clfh);
}
$ make perl
If this not the first update for this version, first edit
-F<lib/Module/CoreList.pm>to delete the existing entries for this version
-from the C<%released> and C<%version> hashes: they will have a key like
-C<5.010001> for 5.10.1.
+F<ext/Module-CoreList/lib/Module/CoreList.pm> to delete the existing
+entries for this version from the C<%released> and C<%version> hashes:
+they will have a key like C<5.010001> for 5.10.1.
XXX the edit-in-place functionality of Porting/corelist.pl should
be fixed to handle this automatically.
This will chug for a while, possibly reporting various warnings about
badly-indexed CPABN modules unreltaed to the modules actually in core.
-Assuming all goes well, it will update F<lib/Module/CoreList.pm>.
+Assuming all goes well, it will update
+F<ext/Module-CoreList/lib/Module/CoreList.pm>.
Check that file over carefully:
- $ git diff lib/Module/CoreList.pm
+ $ git diff ext/Module-CoreList/lib/Module/CoreList.pm
If necessary, bump C<$VERSION> (there's no need to do this for
every RC; in RC1, bump the version to a new clean number that will
(unless this is for maint; in which case commit it blead first, then
cherry-pick it back).
- $ git commit -m 'Update Module::CoreList for 5.x.y' lib/Module/CoreList.pm
+ $ git commit -m 'Update Module::CoreList for 5.x.y' ext/Module-CoreList/lib/Module/CoreList.pm
=item *