Re: [Module-build-general] Some improvement to the pass-thru compat Makefile.PL
Status: Beta
Brought to you by:
kwilliams
From: Dave R. <au...@ur...> - 2003-02-03 23:26:10
|
On Thu, 19 Dec 2002, Autrijus Tang wrote: > # Check if we're under the non-reentrant CPAN.pm > require CPAN; > CPAN::Config->load; > > my $cwd = File::Spec->canonpath(Cwd::cwd()); > my $cpan = File::Spec->canonpath($CPAN::Config->{cpan_home}); > if (index($cwd, $cpan) == -1) { > print "This module requires Module::Build to install itself.\n"; > > $yn = ExtUtils::MakeMaker::prompt( > ' Install Module::Build from CPAN?', 'y' > ); > } Autrijus, what exactly is this checking? Is it just that the "index" check returns -1 only for certain newer versions of CPAN.pm? And shouldn't this check come _after_ checking for CPANPLUS? -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/ |