use ExtUtils::MakeMaker; use lib 'lib'; use warnings; use strict; use MKDoc::Setup::SQL; use File::Spec; $ENV{EXTENDED_TESTS} || print STDERR "env EXTENDED_TESTS not set - skipping interactive setup\n"; $ENV{EXTENDED_TESTS} && do { print <<'EOF'; I am going to launch a setup utility. If you do not have a test database, you can cancel the setup - but the test suite will mostly skipped. NOTE: If the extended test suite fails, try upgrading DBD::mysql. Press any key to continue... EOF ; unless (fork()) { -d 'test' or mkdir 'test' or die "Cannot create test directory"; -d 'test/init' or mkdir 'test/init' or die "Cannot create test directory"; $::SITE_DIR = File::Spec->rel2abs ('test'); MKDoc::Setup::SQL->new()->process(); } else { wait; } }; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. WriteMakefile( 'NAME' => 'MKDoc::Auth', 'VERSION_FROM' => 'lib/MKDoc/Auth.pm', # finds $VERSION 'PREREQ_PM' => { 'Test::Harness' => '2.00', 'Scalar::Util' => '1.07', 'MKDoc::SQL' => '0.5', 'MKDoc::Core' => '0.3', 'Petal' => '2.04', 'File::Touch' => '0.01', 'Crypt::PassGen' => '0.04', 'Mail::CheckUser' => '1.21', }, ($] >= 5.005 ? ## Add these new keywords supported since 5.005 (ABSTRACT_FROM => 'lib/MKDoc/Auth.pm', # retrieve abstract from module AUTHOR => 'Jean-Michel Hiver ') : ()), ); 1; package MY; sub postamble { return < /dev/null EOF } 1;