line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use strict; |
3
|
1
|
|
|
1
|
|
22951
|
use warnings; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
23
|
|
4
|
1
|
|
|
1
|
|
4
|
use utf8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
5
|
1
|
|
|
1
|
|
4
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
6
|
|
|
|
|
|
|
use Getopt::Long (); |
7
|
1
|
|
|
1
|
|
635
|
use OrePAN2 (); |
|
1
|
|
|
|
|
8708
|
|
|
1
|
|
|
|
|
24
|
|
8
|
1
|
|
|
1
|
|
294
|
use OrePAN2::Indexer (); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
16
|
|
9
|
1
|
|
|
1
|
|
334
|
use Pod::Usage qw( pod2usage ); |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
27
|
|
10
|
1
|
|
|
1
|
|
1151
|
|
|
1
|
|
|
|
|
33021
|
|
|
1
|
|
|
|
|
212
|
|
11
|
|
|
|
|
|
|
my $class = shift; |
12
|
|
|
|
|
|
|
bless {}, $class; |
13
|
3
|
|
|
3
|
0
|
8993
|
} |
14
|
3
|
|
|
|
|
20
|
|
15
|
|
|
|
|
|
|
my ( $self, @args ) = @_; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
my $version; |
18
|
3
|
|
|
3
|
0
|
9
|
my $text; |
19
|
|
|
|
|
|
|
my $metacpan; |
20
|
3
|
|
|
|
|
8
|
my $simple = 0; |
21
|
|
|
|
|
|
|
|
22
|
3
|
|
|
|
|
0
|
my $p = Getopt::Long::Parser->new( |
23
|
3
|
|
|
|
|
5
|
config => [qw(posix_default no_ignore_case auto_help)] ); |
24
|
|
|
|
|
|
|
$p->getoptionsfromarray( |
25
|
3
|
|
|
|
|
19
|
\@args => ( |
26
|
|
|
|
|
|
|
'metacpan!' => \$metacpan, |
27
|
3
|
|
|
|
|
388
|
'version!' => \$version, |
28
|
|
|
|
|
|
|
'text!' => \$text, |
29
|
|
|
|
|
|
|
'simple!' => \$simple, |
30
|
|
|
|
|
|
|
) |
31
|
|
|
|
|
|
|
); |
32
|
|
|
|
|
|
|
if ($version) { |
33
|
|
|
|
|
|
|
print "orepan2: $OrePAN2::VERSION\n"; |
34
|
|
|
|
|
|
|
} |
35
|
3
|
50
|
|
|
|
1211
|
my $directory = shift @args or pod2usage( |
36
|
0
|
|
|
|
|
0
|
-input => $0, |
37
|
|
|
|
|
|
|
); |
38
|
3
|
50
|
|
|
|
22
|
my $orepan = OrePAN2::Indexer->new( |
39
|
|
|
|
|
|
|
directory => $directory, |
40
|
|
|
|
|
|
|
metacpan => $metacpan, |
41
|
3
|
|
|
|
|
35
|
simple => $simple, |
42
|
|
|
|
|
|
|
); |
43
|
|
|
|
|
|
|
$orepan->make_index( |
44
|
|
|
|
|
|
|
no_compress => $text, |
45
|
|
|
|
|
|
|
); |
46
|
3
|
|
|
|
|
12
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |