| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Module::Build::My; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
11
|
use strict; |
|
|
1
|
|
|
|
|
11
|
|
|
|
1
|
|
|
|
|
50
|
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
88
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use base 'Module::Build'; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
873
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
113568
|
use File::Spec; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
294
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# Replace *.pl files with ones without suffix |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub process_script_files { |
|
13
|
1
|
|
|
1
|
0
|
2014
|
my $self = shift; |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
local *copy_if_modified = sub { |
|
16
|
1
|
|
|
1
|
|
109
|
my $self = shift; |
|
17
|
1
|
50
|
|
|
|
17
|
my %args = (@_ > 3 ? (@_) : (from => shift, to_dir => shift, flatten => shift)); |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# Only for script/*.pl files |
|
20
|
1
|
50
|
33
|
|
|
18
|
if ($args{from} =~ /\bscript\/.*\.pl$/ and $args{to_dir}) { |
|
21
|
1
|
|
|
|
|
24
|
my (undef, undef, $file) = File::Spec->splitpath($args{from}); |
|
22
|
1
|
|
|
|
|
8
|
$file =~ s/\.pl$//; |
|
23
|
1
|
|
|
|
|
12
|
$args{to} = File::Spec->catfile($args{to_dir}, $file); |
|
24
|
1
|
|
|
|
|
4
|
delete $args{to_dir}; |
|
25
|
1
|
|
|
|
|
18
|
return $self->SUPER::copy_if_modified(%args); |
|
26
|
|
|
|
|
|
|
} |
|
27
|
0
|
|
|
|
|
0
|
return $self->SUPER::copy_if_modified(%args); |
|
28
|
1
|
|
|
|
|
46
|
}; |
|
29
|
|
|
|
|
|
|
|
|
30
|
1
|
|
|
|
|
14
|
$self->SUPER::process_script_files; |
|
31
|
|
|
|
|
|
|
} |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |