summaryrefslogtreecommitdiff
path: root/Porting/pod_lib.pl
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgs@consttype.org>2012-03-31 16:48:24 +0200
committerRafael Garcia-Suarez <rgs@consttype.org>2012-03-31 16:48:33 +0200
commit6ca94f4195fb0098aa03840e9e36566404e034c5 (patch)
treec4d4f755c9ca2102aab29d46f21944b392ffaf33 /Porting/pod_lib.pl
parent9ec4dadfbbcf94d284b7e489694f1fa9fd6647c0 (diff)
downloadperl-6ca94f4195fb0098aa03840e9e36566404e034c5.tar.gz
Reinstate dummy ignoredpods functionality
The stub manpages (perlboot, perltoot, etc.) are listed in perl.pod, so they don't need to be ignored by buildtoc. They weren't ignored anyway, since the %ignoredpods hash was, well, ignored.
Diffstat (limited to 'Porting/pod_lib.pl')
-rw-r--r--Porting/pod_lib.pl10
1 files changed, 4 insertions, 6 deletions
diff --git a/Porting/pod_lib.pl b/Porting/pod_lib.pl
index 945e61c697..b257c66ed7 100644
--- a/Porting/pod_lib.pl
+++ b/Porting/pod_lib.pl
@@ -248,11 +248,9 @@ sub get_pod_metadata {
my (%cpanpods, %cpanpods_leaf);
my (%our_pods);
- # These are stub files for deleted documents. We don't want them to show up
- # in perl.pod, they just exist so that if someone types "perldoc perltoot"
- # they get some sort of pointer to the new docs.
- my %ignoredpods
- = map { ( "$_.pod" => 1 ) } qw( perlboot perlbot perltodo perltooc perltoot );
+ # There are files that we don't want to list in perl.pod.
+ # Maybe the various stub manpages should be listed there.
+ my %ignoredpods = map { ( "$_.pod" => 1 ) } qw( );
# Convert these to a list of filenames.
++$our_pods{"$_.pod"} foreach keys %{$state{pods}};
@@ -300,7 +298,7 @@ sub get_pod_metadata {
my @inconsistent;
foreach my $i (sort keys %disk_pods) {
push @inconsistent, "$0: $i exists but is unknown by buildtoc\n"
- unless $our_pods{$i};
+ unless $our_pods{$i} || $ignoredpods{$i};
push @inconsistent, "$0: $i exists but is unknown by MANIFEST\n"
if !$BuildFiles{'MANIFEST'} # Ignore if we're rebuilding MANIFEST
&& !$manipods{$i} && !$manireadmes{$i} && !$state{copies}{$i}