~ubuntu-branches/ubuntu/utopic/libclass-meta-perl/utopic

« back to all changes in this revision

Viewing changes to Makefile.PL

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Krzyzaniak (eloy)
  • Date: 2006-01-03 17:29:20 UTC
  • Revision ID: james.westby@ubuntu.com-20060103172920-h94p8qrrav90bzq0
Tags: upstream-0.52
ImportĀ upstreamĀ versionĀ 0.52

Show diffs side-by-side

added added

removed removed

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