line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Module::Install::ReadmePodFromPod; |
2
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
43
|
|
3
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
4
|
1
|
|
|
1
|
|
6
|
use base qw(Module::Install::Base); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
757
|
|
5
|
1
|
|
|
1
|
|
5
|
use vars qw($VERSION); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
177
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
$VERSION = '0.01'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub readme_pod_from { |
10
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
11
|
0
|
0
|
|
|
|
|
return unless $Module::Install::AUTHOR; |
12
|
0
|
|
0
|
|
|
|
my $file = shift || return; |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
|
|
|
require Pod::Perldoc::ToPod; |
15
|
0
|
0
|
|
|
|
|
open my $out, '>', 'README.pod' or die "can not create README.pod file: $!"; |
16
|
0
|
|
|
|
|
|
my $parser = Pod::Perldoc::ToPod->new; |
17
|
0
|
|
|
|
|
|
$parser->parse_from_file($file, $out); |
18
|
0
|
|
|
|
|
|
return 1; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
'let README.pod render Pod as ... Pod!'; |
22
|
|
|
|
|
|
|
__END__ |