From 44b2ff671b3f8152e43205e122912ebbef3f7980 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 27 Oct 2009 20:56:50 +0000 Subject: Bug 510246: makedocs.pl should not compile POD for modules in lib/ - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/lib/Pod/Simple/HTMLBatch/Bugzilla.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; -- cgit v1.2.3-24-g4f1b