| 1 | package My::Builder; | ||
| 2 | 1 | ▶ | use Module::Build; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | our @ISA = qw(Module::Build); | |
| 4 | |||
| 5 | sub ACTION_code { | ||
| 6 | 1 | ▶ | my $self = shift; |
|
Subroutine
ACTION_code: called CC=2 SCAR=6.9
Pod
undocumented
| |||
| 7 | 1 | $self->SUPER::ACTION_code(@_); | |
| 8 | # Copy the test scripts and then set the shebang line and make | ||
| 9 | # sure that they're executable. | ||
| 10 | 1 | my @scripts; | |
| 11 | 1 | my $to_dir = $self->localize_file_path("t/scripts"); | |
| 12 | 1 | for my $base (qw(testsvnlook testsendmail)) { | |
| 13 | 2 | my $script = "$to_dir/$base"; | |
| 14 | 2 | push @scripts, $self->localize_file_path($script); | |
| 15 | 2 | my $orig = $self->localize_file_path("t/bin/$base"); | |
| 16 | 2 | $self->copy_if_modified( | |
| 17 | from => $orig, | ||
| 18 | to_dir => $to_dir, | ||
| 19 | flatten => 1, | ||
| 20 | ); | ||
| 21 | } | ||
| 22 | 1 | $self->fix_shebang_line(@scripts); | |
| 23 | 1 | $self->make_executable(@scripts); | |
| 24 | 1 | $self->add_to_cleanup($to_dir); | |
| 25 | } | ||
| 26 | |||
| 27 | 1 | 1; | |