line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package |
2
|
|
|
|
|
|
|
MyBuilder; |
3
|
1
|
|
|
1
|
|
7
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
49
|
|
4
|
1
|
|
|
1
|
|
7
|
use warnings qw(FATAL all NONFATAL misc); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
81
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
7
|
use File::Find; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
109
|
|
7
|
1
|
|
|
1
|
|
7
|
use File::Basename (); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
8
|
1
|
|
|
1
|
|
6
|
use File::Path; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
102
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
8
|
use base qw(Module::Build File::Spec); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
1757
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub find_dist_packages { |
13
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
my $primary_ver = $self->dist_version; |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
$primary_ver =~ s/^v//; |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
my %dist_packs = ($self->module_name |
20
|
|
|
|
|
|
|
, {file => $self->dist_version_from |
21
|
|
|
|
|
|
|
, version => $primary_ver}); |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
my $pm_files = $self->pm_files; |
24
|
0
|
|
|
|
|
|
foreach my $realfile (keys %$pm_files) { |
25
|
0
|
|
|
|
|
|
my $pack = $pm_files->{$realfile}; |
26
|
0
|
|
|
|
|
|
$pack =~ s!^lib/!!; |
27
|
0
|
|
|
|
|
|
$pack =~ s!/!::!g; |
28
|
0
|
|
|
|
|
|
$pack =~ s!\.pm$!!; |
29
|
0
|
|
|
|
|
|
$dist_packs{$pack} = +{file => $realfile |
30
|
|
|
|
|
|
|
, version => $primary_ver}; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
|
|
|
\%dist_packs; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
__END__ |