#!./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;
-require File::Path;
use ExtUtils::Packlist;
use Pod::Man;
use vars qw(%opts $packlist);
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) {
}
}
- File::Path::mkpath($mandir, $opts{verbose}, 0777) unless $opts{notify};
+ mkpath($mandir);
foreach my $manpage (sort keys %$modpods) {
my $mod = $modpods->{$manpage};
$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: