From: Jesse Vincent Date: Thu, 1 Oct 2009 20:00:52 +0000 (+0900) Subject: More work to get corelist.pl to know the new world order X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3eae08dfbe89d75b89c4024f9ef41b7e8aa46236;p=p5sagit%2Fp5-mst-13.2.git More work to get corelist.pl to know the new world order --- diff --git a/Porting/corelist.pl b/Porting/corelist.pl index b636051..7fa8dcd 100644 --- a/Porting/corelist.pl +++ b/Porting/corelist.pl @@ -85,12 +85,13 @@ find( $version =~ /\d/ and $version = "'$version'"; # some heuristics to figure out the module name from the file name - $module =~ s{^(lib|dist|(vms/|symbian/)?ext)/}{} - and $1 ne 'lib' + $module =~ s{^(lib|cpan|dist|(vms/|symbian/)?ext)/}{} + and $1 ne 'lib' and ( $module =~ s{\b(\w+)/\1\b}{$1}, $module =~ s{^B/O}{O}, $module =~ s{^Devel-PPPort}{Devel}, + $module =~ s{^libnet/}{}, $module =~ s{^Encode/encoding}{encoding}, $module =~ s{^IPC-SysV/}{IPC/}, $module =~ s{^MIME-Base64/QuotedPrint}{MIME/QuotedPrint}, @@ -98,13 +99,14 @@ find( ); $module =~ s{/}{::}g; $module =~ s{-}{::}g; - $module =~ s{^.*::lib::}{}; + $module =~ s{^.*::lib::}{}; $module =~ s/(\.pm|_pm\.PL)$//; $lines{$module} = $version; $module_to_file{$module} = $File::Find::name; }, 'lib', 'ext', + 'cpan', 'dist', 'vms/ext', 'symbian/ext'