You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
1.1 KiB

  1. # Note: this file was auto-generated by Module::Build::Compat version 0.03
  2. unless (eval "use Module::Build::Compat 0.02; 1" ) {
  3. print "This module requires Module::Build to install itself.\n";
  4. require ExtUtils::MakeMaker;
  5. my $yn = ExtUtils::MakeMaker::prompt
  6. (' Install Module::Build now from CPAN?', 'y');
  7. unless ($yn =~ /^y/i) {
  8. die " *** Cannot install without Module::Build. Exiting ...\n";
  9. }
  10. require Cwd;
  11. require File::Spec;
  12. require CPAN;
  13. # Save this 'cause CPAN will chdir all over the place.
  14. my $cwd = Cwd::cwd();
  15. my $makefile = File::Spec->rel2abs($0);
  16. CPAN::Shell->install('Module::Build::Compat')
  17. or die " *** Cannot install without Module::Build. Exiting ...\n";
  18. chdir $cwd or die "Cannot chdir() back to $cwd: $!";
  19. }
  20. eval "use Module::Build::Compat 0.02; 1" or die $@;
  21. use lib '_build/lib';
  22. Module::Build::Compat->run_build_pl(args => \@ARGV);
  23. require Module::Build;
  24. Module::Build::Compat->write_makefile(build_class => 'Module::Build');