X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=192903ae4c8e6429e4217e47d54fe158322d3d12;hb=2352a24183c1ae0cc4c97a6f8cec4c70657fd559;hp=51d31fd328d6b81a957ec0c78db136d5abdba5e7;hpb=7e4b2f592f35284c849328d1e059d68fcbc0eb4d;p=dbsrgits%2FDBIx-Class.git diff --git a/Makefile.PL b/Makefile.PL index 51d31fd..192903a 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -17,15 +17,15 @@ # Save this 'cause CPAN will chdir all over the place. my $cwd = Cwd::cwd(); - my $makefile = File::Spec->rel2abs($0); - CPAN::Shell->install('Module::Build::Compat') - or die " *** Cannot install without Module::Build. Exiting ...\n"; + CPAN::Shell->install('Module::Build::Compat'); + CPAN::Shell->expand("Module", "Module::Build::Compat")->uptodate + or die "Couldn't install Module::Build, giving up.\n"; chdir $cwd or die "Cannot chdir() back to $cwd: $!"; } eval "use Module::Build::Compat 0.02; 1" or die $@; - use lib '_build/lib'; + Module::Build::Compat->run_build_pl(args => \@ARGV); require Module::Build; Module::Build::Compat->write_makefile(build_class => 'Module::Build');