This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add OS-specific modules in Module::Corelist generation script
[perl5.git]
/
Porting
/
corelist.pl
diff --git
a/Porting/corelist.pl
b/Porting/corelist.pl
index
f76928f
..
f79cc15
100644
(file)
--- a/
Porting/corelist.pl
+++ b/
Porting/corelist.pl
@@
-17,8
+17,8
@@
find(sub {
defined $version or $version = 'undef';
$version =~ /\d/ and $version = "'$version'";
# some heuristics to figure out the module name from the file name
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},
and ( $module =~ s{^(.*)/lib/\1\b}{$1},
$module =~ s{(\w+)/\1\b}{$1},
$module =~ s{^B/O}{O},
@@
-34,7
+34,7
@@
find(sub {
$module =~ s{/}{::}g;
$module =~ s/(\.pm|_pm\.PL)$//;
push @lines, sprintf "\t%-24s=> $version,\n", "'$module'";
$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";
print " $] => {\n";
print sort @lines;
print " },\n";