summaryrefslogtreecommitdiffstats
path: root/docs/lib
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-10-27 21:56:50 +0100
committerlpsolit%gmail.com <>2009-10-27 21:56:50 +0100
commit44b2ff671b3f8152e43205e122912ebbef3f7980 (patch)
treedc7bf0f5fdded4f557e077a8e1701051e55ddd82 /docs/lib
parent2635ababda68c467e164f99a984dc7ad1766028e (diff)
downloadbugzilla-44b2ff671b3f8152e43205e122912ebbef3f7980.tar.gz
bugzilla-44b2ff671b3f8152e43205e122912ebbef3f7980.tar.xz
Bug 510246: makedocs.pl should not compile POD for modules in lib/ - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'docs/lib')
-rw-r--r--docs/lib/Pod/Simple/HTMLBatch/Bugzilla.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/lib/Pod/Simple/HTMLBatch/Bugzilla.pm b/docs/lib/Pod/Simple/HTMLBatch/Bugzilla.pm
index c8309d70e..6cd59b50c 100644
--- a/docs/lib/Pod/Simple/HTMLBatch/Bugzilla.pm
+++ b/docs/lib/Pod/Simple/HTMLBatch/Bugzilla.pm
@@ -106,4 +106,14 @@ sub note_for_contents_file {
return $retval;
}
+# Exclude modules being in lib/.
+sub find_all_pods {
+ my($self, $dirs) = @_;
+ my $mod2path = $self->SUPER::find_all_pods($dirs);
+ foreach my $mod (keys %$mod2path) {
+ delete $mod2path->{$mod} if $mod =~ /^lib::/;
+ }
+ return $mod2path;
+}
+
1;