fix a cast warning in perly.c
[p5sagit/p5-mst-13.2.git] / Porting / corelist.pl
index 4609ee8..f79cc15 100644 (file)
@@ -17,21 +17,24 @@ find(sub {
     defined $version or $version = 'undef';
     $version =~ /\d/ and $version = "'$version'";
     # some heuristics to figure out the module name from the file name
-    $module =~ s{^(lib|ext)/}{}
-       and $1 eq 'ext'
+    $module =~ s{^(lib|(win32/|vms/|symbian/)?ext)/}{}
+       and $1 ne 'lib'
        and ( $module =~ s{^(.*)/lib/\1\b}{$1},
              $module =~ s{(\w+)/\1\b}{$1},
+             $module =~ s{^B/O}{O},
              $module =~ s{^Compress/IO/Base/lib/}{},
+             $module =~ s{^Compress/IO/Zlib/}{},
              $module =~ s{^Devel/PPPort}{Devel},
              $module =~ s{^Encode/encoding}{encoding},
-             $module =~ s{^MIME/Base64/QuotedPrint}{MIME/QuotedPrint},
+             $module =~ s{^IPC/SysV/}{IPC/},
              $module =~ s{^List/Util/lib/Scalar}{Scalar},
-             $module =~ s{^(?:DynaLoader|Errno)/}{},
+             $module =~ s{^MIME/Base64/QuotedPrint}{MIME/QuotedPrint},
+             $module =~ s{^(?:DynaLoader|Errno|Opcode)/}{},
            );
     $module =~ s{/}{::}g;
     $module =~ s/(\.pm|_pm\.PL)$//;
     push @lines, sprintf "\t%-24s=> $version,\n", "'$module'";
-}, 'lib', 'ext');
+}, 'lib', 'ext', 'win32/ext', 'vms/ext', 'symbian/ext');
 print "    $] => {\n";
 print sort @lines;
 print "    },\n";