Alzabo
view release on metacpan or search on metacpan
use strict;
use 5.005;
use Data::Dumper;
use File::Spec;
use lib 'inc';
use Alzabo::Build;
use Getopt::Long qw( :config pass_through );
my %opts;
GetOptions( 'dist' => \$opts{dist},
'root:s' => \$opts{root},
'pg!' => \$opts{pg},
'mysql!' => \$opts{mysql},
'automated' => \$opts{automated},
'help' => \$opts{help},
);
if ( $opts{help} )
{
print <<'EOF';
perl Build.PL [--automated] [--pg] [--mysql]
This script accepts several options:
--automated Run without prompts
--pg Include prereqs for PostgreSQL support
--mysql Include prereqs for MySQL support
--root Root dir for storing Alzabos schemas
--help What you are reading
EOF
exit;
}
{
my ( $config, $prereqs, $tests );
unless ( $opts{dist} )
{
( $config, $prereqs, $tests ) = config();
write_config_module($config);
}
else
{
$prereqs = dist_prereqs();
$config = {};
}
my $build =
Alzabo::Build->new( module_name => 'Alzabo',
license => 'perl',
%$prereqs,
sign => 1,
);
( run in 1.016 second using v1.01-cache-2.11-cpan-39bf76dae61 )