From 59d2de2549d6941aca18a448b88ef767570bd223 Mon Sep 17 00:00:00 2001 From: Abir Viqar Date: Sat, 14 Dec 2013 14:07:28 -0500 Subject: [PATCH] Porting/corelist-perldelta.pl - Make documentation clearer * Fix incorrect usage example for update * Document that removed modules are currently ignored * Clarify why some distributions have to be manually checked * Clarify why a distribution may not be listed in Module::CoreList --- Porting/corelist-perldelta.pl | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/Porting/corelist-perldelta.pl b/Porting/corelist-perldelta.pl index 5e9f32c..d34766c 100755 --- a/Porting/corelist-perldelta.pl +++ b/Porting/corelist-perldelta.pl @@ -14,7 +14,7 @@ use Getopt::Long; ./perl -Ilib Porting/corelist-perldelta.pl # update the module changes for the Perl you are currently building - perl Porting/corelist-perldelta.pl --mode=update Porting/perldelta.pod + ./perl -Ilib Porting/corelist-perldelta.pl --mode=update pod/perldelta.pod # generate a diff between the corelist sections of two perldelta* files: perl Porting/corelist-perldelta.pl --mode=check 5.017001 5.017002 $new ); if ($manuallyCheck) { - say "Please check whether the following distributions have been modified and list accordingly"; + print "It cannot be determined whether the following distributions have changed.\n"; + print "Please check and list accordingly:\n"; say "\t* $_" for sort @{$manuallyCheck}; + print "\n"; } my $data = { @@ -268,6 +272,8 @@ sub do_update_existing { binmode($out); print $out $text; close $out; + say "The New and Updated Modules and Pragamata sections in $existing have been updated"; + say "Please ensure the Removed Modules and Pragmata section is up-to-date"; } sub do_generate { @@ -275,8 +281,10 @@ sub do_generate { my ($added, $removed, $updated, $manuallyCheck) = corelist_delta($old => $new); if ($manuallyCheck) { - say "\nXXXPlease check whether the following distributions have been modified and list accordingly"; + print "\nXXXIt cannot be determined whether the following distributions have changed.\n"; + print "Please check and list accordingly:\n"; say "\t$_" for @{$manuallyCheck}; + print "\n"; } my $data = { @@ -372,8 +380,13 @@ sub do_check { next if !$module and $content =~ /\s*xx*\s*/i; say "Could not parse module name; line is:\n\t$content" and next unless $module; - say "$module is not in Module::CoreList; check to see that it is not covered by another section" and next - unless $data->{$title}{$module}; + + if ( !$data->{$title}{$module} ) { + print "$module is not listed as being $title in Module::CoreList.\n"; + print "Ensure Module::CoreList has been updated and\n"; + print "check to see that the distribution is not listed under another name.\n\n"; + next; + } if ( $title eq 'new' ) { my ($new) = $content =~ /(\d[^\s]+)\s+has\s+been.*$/m; -- 2.7.4