From a01f566143b97d5d074775e31bd511a83044cab6 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Sat, 13 Jul 2013 20:50:44 +0200 Subject: Move the wrapper for File::Path::mkpath() to install_lib.pl installperl and installman call File::Path::mkpath with identical arguments and options, so move the repeated code into a single place. --- installman | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'installman') diff --git a/installman b/installman index adb76f86e1..201be21da2 100755 --- a/installman +++ b/installman @@ -8,7 +8,6 @@ BEGIN { use strict; use Getopt::Long; -require File::Path; use ExtUtils::Packlist; use Pod::Man; use vars qw(%opts $packlist); @@ -119,7 +118,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}; -- cgit v1.2.1