diff options
author | Karen Etheridge <ether@cpan.org> | 2020-12-22 11:22:13 -0800 |
---|---|---|
committer | Karen Etheridge <ether@cpan.org> | 2020-12-22 11:24:24 -0800 |
commit | d4f7ec970b3e468fa723d650fc87974550189f0e (patch) | |
tree | 4e894f4e517834d4ba2388f64ed74ec4746c53aa /Porting/corelist.pl | |
parent | f2e5aa2da3e37a8c827b3cf964d88d27a39ebf3e (diff) | |
download | perl-d4f7ec970b3e468fa723d650fc87974550189f0e.tar.gz |
do not look for modules under */*/{inc,t} for Module::CoreList
this avoids adding the internal modules inc::QuestionList (from perlfaq) or
Win32API::File::inc::ExtUtils::Myconst2perl (from Win32API-File)
Diffstat (limited to 'Porting/corelist.pl')
-rwxr-xr-x | Porting/corelist.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Porting/corelist.pl b/Porting/corelist.pl index 05393c0ada..7c75f06d16 100755 --- a/Porting/corelist.pl +++ b/Porting/corelist.pl @@ -96,6 +96,12 @@ if ($cpan) { find( sub { + if (-d) { + my @parts = File::Spec->splitdir($File::Find::name); + # be careful not to skip inc::latest + return $File::Find::prune = 1 if @parts == 3 and ($parts[-1] eq 'inc' or $parts[-1] eq 't'); + } + /(\.pm|_pm\.PL)$/ or return; /PPPort\.pm$/ and return; my $module = $File::Find::name; |