1 package SQL::Translator::Module::Build;
7 use base qw/Module::Build/;
9 # Copies contents of ./templates into blib/templates. These are then installed
10 # based on the install_paths setting given to the constructor.
11 # Called by Module::Build due to add_build_element call in Build.PL
12 sub process_template_files {
18 $build->copy_if_modified( from => $_, to_dir => "blib", verbose => 1);
23 # Install the templates copied into blib above. Uses
26 $build->SUPER::ACTION_install(@_);
27 require ExtUtils::Install;
28 my $install_to = $build->config_data( 'template_dir' );
29 ExtUtils::Install::install(
30 { 'templates' => $install_to }, 1, 0, $build->{args}{uninst} || 0 );