2
unless (eval "use Module::Build::Compat 0.02; 1" ) {
3
print "This module requires Module::Build to install itself.\n";
5
require ExtUtils::MakeMaker;
6
my $yn = ExtUtils::MakeMaker::prompt
7
(' Install Module::Build now from CPAN?', 'y');
9
unless ($yn =~ /^y/i) {
10
warn " *** Cannot install without Module::Build. Exiting ...\n";
18
# Save this 'cause CPAN will chdir all over the place.
20
my $makefile = File::Spec->rel2abs($0);
22
CPAN::Shell->install('Module::Build::Compat');
24
chdir $cwd or die "Cannot chdir() back to $cwd: $!";
25
exec $^X, $makefile, @ARGV; # Redo now that we have Module::Build
27
Module::Build::Compat->run_build_pl(args => \@ARGV);
28
Module::Build::Compat->write_makefile();
1
# Note: this file was auto-generated by Module::Build::Compat version 0.03
2
use ExtUtils::MakeMaker;
6
'INSTALLDIRS' => 'site',
7
'NAME' => 'Template::Plugin::Class',
8
'VERSION_FROM' => 'lib/Template/Plugin/Class.pm',