Build.PL: Explicitly list generated scripts to fix the auto-generated Makefile

A) Having moved bin to bin_PL without listing the scripts explicitly as having been
auto-generated by _build_docs means make doesn't work out the dependencies properly.

B) The cp used to copy bin/ into blib isn't specified as being recursive, this
means that we need to list each entry or we see:
  cp bin blib/script/bin
  cp: omitting directory ‘bin’
This commit is contained in:
Mark Chappell 2015-12-31 17:27:12 +01:00
parent 7e55006acd
commit 0a307da3ac
2 changed files with 28 additions and 21 deletions

View file

@ -106,9 +106,9 @@ my $build = $class->new(
configure_requires => { 'Module::Build' => 0, },
add_to_cleanup => ['App-ClusterSSH-*'],
create_makefile_pl => 'traditional',
script_files => 'bin',
script_files => [ 'bin/cssh', 'bin/csftp', 'bin/ccon', 'bin/crsh', 'bin/ctel', 'bin/clusterssh_bash_completion.dist'],
get_options => { changes => { type => '=s' }, },
PL_files => { 'bin_PL/_build_docs' => [], },
PL_files => { 'bin_PL/_build_docs' => [ 'bin/cssh', 'bin/csftp', 'bin/ccon', 'bin/crsh', 'bin/ctel', 'bin/clusterssh_bash_completion.dist'], },
);
$build->create_build_script;

View file

@ -1,12 +1,18 @@
# Note: this file was auto-generated by Module::Build::Compat version 0.39_01
# Note: this file was auto-generated by Module::Build::Compat version 0.4214
use ExtUtils::MakeMaker;
WriteMakefile
(
'PL_FILES' => {
'bin_PL/_build_docs' => []
'bin_PL/_build_docs' => [
'bin/cssh',
'bin/csftp',
'bin/ccon',
'bin/crsh',
'bin/ctel',
'bin/clusterssh_bash_completion.dist'
]
},
'INSTALLDIRS' => 'site',
'NAME' => 'App::ClusterSSH',
'EXE_FILES' => [
'bin/ccon',
'bin/clusterssh_bash_completion.dist',
@ -15,27 +21,28 @@ WriteMakefile
'bin/cssh',
'bin/ctel'
],
'VERSION_FROM' => 'lib/App/ClusterSSH.pm',
'PREREQ_PM' => {
'Test::Trap' => 0,
'File::Which' => 0,
'Test::Pod' => 0,
'X11::Protocol' => '0.56',
'CPAN::Changes' => '0.27',
'File::Path' => 0,
'Tk' => '800.022',
'File::Slurp' => 0,
'Try::Tiny' => 0,
'Getopt::Long' => 0,
'Test::Pod::Coverage' => 0,
'version' => '0',
'Readonly' => 0,
'Exception::Class' => '1.31',
'Test::Differences' => 0,
'Test::DistManifest' => 0,
'File::Temp' => 0,
'Test::PerlTidy' => 0,
'Locale::Maketext' => 0
}
'Locale::Maketext' => 0,
'X11::Protocol' => '0.56',
'Test::Trap' => 0,
'Getopt::Long' => 0,
'File::Which' => 0,
'File::Path' => 0,
'Try::Tiny' => 0,
'Test::Pod' => 0,
'Tk' => '800.022',
'Test::DistManifest' => 0,
'Test::Pod::Coverage' => 0,
'File::Slurp' => 0,
'Readonly' => 0,
'File::Temp' => 0
},
'NAME' => 'App::ClusterSSH',
'VERSION_FROM' => 'lib/App/ClusterSSH.pm'
)
;