This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
POSIX: discourage use of default exports
[perl5.git]
/
installman
diff --git
a/installman
b/installman
index
adb76f8
..
ce4b7f3
100755
(executable)
--- a/
installman
+++ b/
installman
@@
-1,14
+1,16
@@
#!./perl -w
#!./perl -w
+
BEGIN {
@INC = qw(lib);
# This needs to be at BEGIN time, before any use of Config
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';
}
require './install_lib.pl';
}
+
use strict;
use Getopt::Long;
use strict;
use Getopt::Long;
-require File::Path;
use ExtUtils::Packlist;
use Pod::Man;
use vars qw(%opts $packlist);
use ExtUtils::Packlist;
use Pod::Man;
use vars qw(%opts $packlist);
@@
-81,7
+83,7
@@
while (<$fh>) {
next if /^#/;
chomp;
my ($path, $leaf) = m|^(\S*/(\S+))|;
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) {
next if $man1{$leaf};
pod2man({$leaf, $path}, $opts{man1dir}, $opts{man1ext});
if ($has_man1dir) {
@@
-119,7
+121,7
@@
sub pod2man {
}
}
}
}
-
File::Path::mkpath($mandir, $opts{verbose}, 0777) unless $opts{notify}
;
+
mkpath($mandir)
;
foreach my $manpage (sort keys %$modpods) {
my $mod = $modpods->{$manpage};
foreach my $manpage (sort keys %$modpods) {
my $mod = $modpods->{$manpage};
@@
-172,9
+174,4
@@
sub pod2man {
$packlist->write() unless $opts{notify};
print " Installation complete\n" if $opts{verbose};
$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:
# ex: set ts=8 sts=4 sw=4 et: