line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Module::Install::ORLite2Pod; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
683
|
use 5.006001; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
34
|
|
4
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
5
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
6
|
1
|
|
|
1
|
|
525
|
use Module::Install::Base (); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
14
|
|
7
|
1
|
|
|
1
|
|
757
|
use Params::Util; |
|
1
|
|
|
|
|
2531
|
|
|
1
|
|
|
|
|
38
|
|
8
|
1
|
|
|
1
|
|
6633
|
use ORLite::Pod; |
|
1
|
|
|
|
|
76970
|
|
|
1
|
|
|
|
|
234
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our @ISA = qw(Module::Install::Base); |
11
|
|
|
|
|
|
|
our $VERSION = '1.000'; |
12
|
|
|
|
|
|
|
$VERSION =~ s/_//ms; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub orlite2pod { |
15
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
16
|
0
|
0
|
|
|
|
|
return if not $Module::Install::AUTHOR; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
|
my ( $from, $to, $author, $email, $year ) = @_; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
#die unless things are defined? |
21
|
|
|
|
|
|
|
|
22
|
0
|
0
|
|
|
|
|
unless ( -d $to ) { |
23
|
0
|
|
|
|
|
|
die("Failed to find $to directory"); |
24
|
|
|
|
|
|
|
} |
25
|
0
|
|
|
|
|
|
unshift @INC, $to; |
26
|
|
|
|
|
|
|
|
27
|
0
|
0
|
|
|
|
|
unless ( Params::Util::_CLASS($from) ) { |
28
|
0
|
|
|
|
|
|
usage(); |
29
|
|
|
|
|
|
|
} |
30
|
0
|
|
|
|
|
|
eval "use $from { show_progress => 1 };"; |
31
|
0
|
0
|
|
|
|
|
if ($@) { |
32
|
0
|
|
|
|
|
|
die("Failed to load $from: $@"); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
0
|
|
|
|
|
|
my $generator = ORLite::Pod->new( |
36
|
|
|
|
|
|
|
trace => 1, |
37
|
|
|
|
|
|
|
from => $from, |
38
|
|
|
|
|
|
|
to => $to, |
39
|
|
|
|
|
|
|
author => $author, |
40
|
|
|
|
|
|
|
email => $email, |
41
|
|
|
|
|
|
|
year => $year |
42
|
|
|
|
|
|
|
); |
43
|
|
|
|
|
|
|
|
44
|
0
|
|
|
|
|
|
$generator->run; |
45
|
|
|
|
|
|
|
|
46
|
0
|
|
|
|
|
|
return 1; |
47
|
|
|
|
|
|
|
} ## end sub orlite2pod |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |
50
|
|
|
|
|
|
|
__END__ |