version 1.3, 2007/02/05 19:39:33 |
version 1.4, 2007/02/05 21:36:42 |
|
|
use warnings; |
use warnings; |
use Module::Build; |
use Module::Build; |
use File::Spec; |
use File::Spec; |
# $RedRiver: Build.PL,v 1.2 2007/02/05 19:21:02 andrew Exp $ |
# $RedRiver: Build.PL,v 1.3 2007/02/05 19:39:33 andrew Exp $ |
|
|
my $cfg_file = File::Spec->catfile('t', 'do_network.tests'); |
my $cfg_file = File::Spec->catfile('t', 'tests.cfg'); |
|
|
my $builder = Module::Build->new( |
my $builder = Module::Build->new( |
module_name => 'Net::Telnet::Trango', |
module_name => 'Net::Telnet::Trango', |
|
|
'Test::More' => 0, |
'Test::More' => 0, |
}, |
}, |
add_to_cleanup => [ 'Net-Telnet-Trango-*', $cfg_file ], |
add_to_cleanup => [ 'Net-Telnet-Trango-*', $cfg_file ], |
|
create_makefile_pl => 'traditional', |
|
create_readme => 1, |
|
create_html => 1, |
|
dynamic_config => 1, |
|
auto_features => { |
|
YAML_support => |
|
{ |
|
description => "Use YAML.pm to write META.yml files", |
|
requires => { YAML => ' >= 0.35, != 0.49_01 ' }, |
|
}, |
|
manpage_support => |
|
{ |
|
description => "Create Unix man pages", |
|
requires => { 'Pod::Man' => 0 }, |
|
}, |
|
HTML_support => |
|
{ |
|
description => "Create HTML documentation", |
|
requires => { 'Pod::Html' => 0 }, |
|
}, |
|
}, |
); |
); |
|
|
my %cfg; |
my %cfg; |
|
|
|
|
EOB |
EOB |
|
|
$cfg->{AP} = $builder->prompt("AP: ", $cfg->{AP}) || return; |
$cfg->{AP} = $builder->prompt("AP: ", $cfg->{AP}) || return; |
$cfg->{PASSWD} = $builder->prompt("Password:", $cfg->{PASSWD}) || return; |
$cfg->{AP_PASSWD} = $builder->prompt("Password:", $cfg->{AP_PASSWD}) || return; |
} |
} |