diff options
author | Alexey Tourbin <at@altlinux.ru> | 2003-08-04 01:33:00 +0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-08-04 05:03:30 +0000 |
commit | 63fae90782a9851db725590019f02999dc17a13e (patch) | |
tree | 8851fba1fe76517d13c6ce86b28e9e944f5b0b9c | |
parent | 582cb20e4de9cf2d47abf705ff2908664756c5f0 (diff) | |
download | perl-63fae90782a9851db725590019f02999dc17a13e.tar.gz |
Debian patch that skips podless modules
Message-ID: <20030803173300.GC2076@julia.office.altlinux.ru>
(plus Schwern's and Robert's nits)
p4raw-id: //depot/perl@20466
-rwxr-xr-x | installman | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/installman b/installman index 56aeb43790..79c603593e 100755 --- a/installman +++ b/installman @@ -142,6 +142,25 @@ sub pod2man { next if $mod =~ m:/t/:; # no pods from test directories next if ($manpage eq 'Pod/Functions.pm'); #### Used only by pod itself + # Skip files without pod docs + my $has_pod; + if (open T, $mod) + { + local $_; + while (<T>) + { + ++$has_pod and last if /^=(?:head\d+|item|pod)\b/; + } + + close T; + } + + unless ($has_pod) + { + warn "no documentation in $mod\n"; + next; + } + # Convert name from File/Basename.pm to File::Basename.3 format, # if necessary. $manpage =~ s#\.p(m|od)$##; |