line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Pod::PseudoPod::Book::Command::buildpml; |
2
|
|
|
|
|
|
|
# ABSTRACT: command module for C<ppbook buildpml> |
3
|
|
|
|
|
|
|
|
4
|
2
|
|
|
2
|
|
1947
|
use strict; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
76
|
|
5
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
67
|
|
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
12
|
use parent 'Pod::PseudoPod::Book::Command'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
55
|
|
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
1235
|
use Pod::PseudoPod::DOM::App::ToPML; |
|
2
|
|
|
|
|
14625
|
|
|
2
|
|
|
|
|
83
|
|
10
|
2
|
|
|
2
|
|
21
|
use File::Spec::Functions qw( catfile catdir splitpath ); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
473
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub execute |
13
|
|
|
|
|
|
|
{ |
14
|
0
|
|
|
0
|
1
|
|
my ($self, $opt, $args) = @_; |
15
|
0
|
|
|
|
|
|
my @files = $self->gather_files( 'pml' ); |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
Pod::PseudoPod::DOM::App::ToPML::process_files_with_output( @files ); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub gather_files |
21
|
|
|
|
|
|
|
{ |
22
|
0
|
|
|
0
|
0
|
|
my ($self, $suffix) = @_; |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
my @chapters; |
25
|
|
|
|
|
|
|
|
26
|
0
|
0
|
|
|
|
|
if (my @order = $self->chapter_order) |
27
|
|
|
|
|
|
|
{ |
28
|
0
|
|
|
|
|
|
my $build_prefix = $self->get_build_prefix; |
29
|
0
|
|
|
|
|
|
@chapters = map { chomp; catfile( $build_prefix, "$_.pod" ) } |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
@order; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
else |
33
|
|
|
|
|
|
|
{ |
34
|
0
|
|
|
|
|
|
@chapters = $self->get_built_chapters; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
|
|
|
return $self->map_chapters_to_output( $suffix, 'pml', @chapters ); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
__END__ |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=pod |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=encoding UTF-8 |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 NAME |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Pod::PseudoPod::Book::Command::buildpml - command module for C<ppbook buildpml> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 VERSION |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
version 1.20210620.2051 |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 AUTHOR |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
chromatic <chromatic@wgz.org> |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
This software is copyright (c) 2011 by chromatic. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
65
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |