Re: [Module::Build] add_property()
Status: Beta
Brought to you by:
kwilliams
|
From: David W. <da...@ki...> - 2006-03-08 16:52:34
|
On Mar 4, 2006, at 11:22, Peter Scott wrote:
> my $builder = Module::Build->new
> (
> install_base => '/path/to/install',
> script_files => [ 'dummy' ],
> dist_name => 'dummy',
> dist_version_from => 'dummy',
> );
> $builder->add_property('yml_files'); # Method not found
> $builder->yml_files({ 'config.yml' => $self->install_base . '/etc/
> dummy.yml' });
> $builder->add_build_element('yml');
> $builder->create_build_script;
With Randy's proposal from a few days ago, once he gets 'round to
implementing it (or I do if I have the tuits) after 0.28, you'll be
able to do this:
my $builder = Module::Build->new(
install_base => '/path/to/install',
script_files => [ 'dummy' ],
dist_name => 'dummy',
dist_version_from => 'dummy',
);
$builder->auto_build_elements(
element => 'yml',
filter => 'yml/*.yml',
install_relpath => 'etc',
);
$builder->create_build_script;
Cool, eh?
Best,
David
|