diff options
author | Jesse Vincent <jesse@bestpractical.com> | 2009-10-02 03:40:19 +0900 |
---|---|---|
committer | Jesse Vincent <jesse@bestpractical.com> | 2009-10-02 03:40:19 +0900 |
commit | 36512bd8db85eeea6f683296e5f830f6ffb32116 (patch) | |
tree | b6c7d8917fd922069833b01afecb5f46cfb7917b /Porting/corecpan.pl | |
parent | cfc946ee43aa15c20d9dcca961126b7b48a53c60 (diff) | |
download | perl-36512bd8db85eeea6f683296e5f830f6ffb32116.tar.gz |
Updated corecpan.pl for the new module layout
Diffstat (limited to 'Porting/corecpan.pl')
-rw-r--r-- | Porting/corecpan.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Porting/corecpan.pl b/Porting/corecpan.pl index 6fced80e5a..647696b294 100644 --- a/Porting/corecpan.pl +++ b/Porting/corecpan.pl @@ -91,8 +91,8 @@ foreach my $source (@sources) { $module =~ s/\_pm.PL\z//; $module =~ s/\.pm\z//; # some heuristics to figure out the module name from the file name - $module =~ s{^(lib|ext)/}{} - and $1 eq 'ext' + $module =~ s{^(lib|ext|dist|cpan)/}{} + and $1 =~ /(?:ext|dist|cpan)/ and ( # ext/Foo-Bar/Bar.pm $module =~ s{^(\w+)-(\w+)/\2$}{$1/lib/$1/$2}, |