diff options
author | Steve Hay <steve.m.hay@googlemail.com> | 2013-10-21 18:31:34 +0100 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2013-10-21 18:31:34 +0100 |
commit | 363338367009f8156f4d49f6a24226eaf02db24c (patch) | |
tree | 97d1a9aa64d092e1b3da7094bf3766e40bb4827e /Porting/core-cpan-diff | |
parent | 72905adc0956f3ad276251c8d98e96acccb89200 (diff) | |
download | perl-363338367009f8156f4d49f6a24226eaf02db24c.tar.gz |
Porting/Maintainers.pl - Remove redundant EXCLUDED files
Also add extra verbose output to Porting/core-cpan-diff to identify such
cases.
Diffstat (limited to 'Porting/core-cpan-diff')
-rw-r--r-- | Porting/core-cpan-diff | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Porting/core-cpan-diff b/Porting/core-cpan-diff index b3afa30e9f..275394508f 100644 --- a/Porting/core-cpan-diff +++ b/Porting/core-cpan-diff @@ -397,6 +397,24 @@ EOF print $outfh " Perl only: $_\n" unless $use_diff; } } + if ( $verbose ) { + foreach my $exclude (@$excluded) { + my $seen = 0; + foreach my $cpan_file (@cpan_files) { + # may be a simple string to match exactly, or a pattern + if ( ref $exclude ) { + $seen = 1 if $cpan_file =~ $exclude; + } + else { + $seen = 1 if $cpan_file eq $exclude; + } + last if $seen; + } + if ( not $seen ) { + print $outfh " Unnecessary exclusion: $exclude\n"; + } + } + } } } |