X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/9dafbe2fc44c0ef0c7c99af0a427fcfe1e118eba..80101a2ccb78ca0743d8612a71a38c9fcf03a341:/mkppport diff --git a/mkppport b/mkppport index 6d65992..3a82109 100644 --- a/mkppport +++ b/mkppport @@ -2,7 +2,6 @@ use strict; use warnings; use Getopt::Long; -use Pod::Usage; use File::Spec; use File::Compare qw( compare ); use File::Copy qw( copy ); @@ -22,7 +21,10 @@ my %opt = ( clean => 0, ); -GetOptions(\%opt, qw( clean list=s )) or pod2usage(2); +unless ( GetOptions(\%opt, qw( clean list=s )) ) { + require Pod::Usage; + Pod::Usage::pod2usage(2); +} my $absroot = File::Spec->rel2abs($rootdir); my @destdirs = readlist($opt{list}); @@ -56,7 +58,7 @@ unshift @INC, File::Spec->catdir($absroot, 'lib'); # Change to Devel::PPPort directory, as it needs the stuff # from the parts/ directory -chdir File::Spec->catdir($rootdir, 'cpan', 'Devel-PPPort'); +chdir File::Spec->catdir($rootdir, 'dist', 'Devel-PPPort'); # Capture and remove temporary files my @unlink; @@ -158,7 +160,8 @@ mkppport [B<--list>=I] [B<--clean>] B generates a I file using Devel::PPPort and distributes it to the various extension directories that -need it to build. +need it to build. On certain Win32 builds, this script is not +used and an alternative mechanism is used to create I. =head1 OPTIONS