X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/a01f566143b97d5d074775e31bd511a83044cab6..b895c103935275c98071d016c904adec2efa6611:/installman?ds=sidebyside diff --git a/installman b/installman index 201be21..60fbce3 100755 --- a/installman +++ b/installman @@ -1,10 +1,13 @@ #!./perl -w + BEGIN { @INC = qw(lib); # This needs to be at BEGIN time, before any use of Config + # install_lib itself loads and imports Config into main:: require './install_lib.pl'; } + use strict; use Getopt::Long; @@ -80,7 +83,7 @@ while (<$fh>) { next if /^#/; chomp; my ($path, $leaf) = m|^(\S*/(\S+))|; - # Have we already installed the manpage for this? (eg perldoc, a2p) + # Have we already installed the manpage for this? (eg perldoc) next if $man1{$leaf}; pod2man({$leaf, $path}, $opts{man1dir}, $opts{man1ext}); if ($has_man1dir) { @@ -139,7 +142,7 @@ sub pod2man { unless ($has_pod) { - warn "no documentation in $mod\n" unless $opts{silent}; + print "no documentation in $mod\n" if $opts{verbose}; next; } @@ -171,9 +174,4 @@ sub pod2man { $packlist->write() unless $opts{notify}; print " Installation complete\n" if $opts{verbose}; -# Local variables: -# cperl-indent-level: 4 -# indent-tabs-mode: nil -# End: -# # ex: set ts=8 sts=4 sw=4 et: