Apache2-AUS
view release on metacpan or search on metacpan
$build = Module::Build->new(%opts, installdirs => {});
print <<"EOT";
*** Apache::TestMB is required to build this module!
This is supplied by the mod_perl2 package.
Once you have installed this package, you may have to run "Build.PL"
again. If you are installing from CPAN, you may need to quit and
re-enter your CPAN shell.
EOT
$build->prompt("Press enter to continue", ".");
} else {
$build = Apache::TestMB->new(%opts);
}
print qq{Example DSN: "DBI:mysql:database=test"\n};
if($build->notes(DBI_DSN => $build->prompt(
"What DSN should we use for database tests? (Enter '0' to skip DB tests)",
exists $ENV{DBI_DSN} ? $ENV{DBI_DSN} : 0
))) {
$build->notes(DBI_USER => $build->prompt(
"Username for the database connection:", $ENV{DBI_USER}
));
$build->notes(DBI_PASS => $build->prompt(
"Password for the database connection:", $ENV{DBI_PASS}
));
} else {
$build->notes(DBI_USER => undef);
$build->notes(DBI_PASS => undef);
}
$build->create_build_script;
Makefile.PL view on Meta::CPAN
# Note: this file was auto-generated by Module::Build::Compat version 0.03
unless (eval "use Module::Build::Compat 0.02; 1" ) {
print "This module requires Module::Build to install itself.\n";
require ExtUtils::MakeMaker;
my $yn = ExtUtils::MakeMaker::prompt
(' Install Module::Build now from CPAN?', 'y');
unless ($yn =~ /^y/i) {
die " *** Cannot install without Module::Build. Exiting ...\n";
}
require Cwd;
require File::Spec;
require CPAN;
( run in 2.374 seconds using v1.01-cache-2.11-cpan-6aa56a78535 )