line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/local/bin/perl |
2
|
1
|
50
|
|
|
|
3
|
eval 'exec /usr/local/bin/perl -S $0 ${1+"$@"}' |
3
|
|
|
|
|
|
|
if $running_under_some_shell; |
4
|
|
|
|
|
|
|
=pod |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
pod2html - convert .pod files to .html files |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 SYNOPSIS |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
pod2html --help --htmldir= --htmlroot= |
13
|
|
|
|
|
|
|
--infile= --outfile= |
14
|
|
|
|
|
|
|
--podpath=:...: --podroot= |
15
|
|
|
|
|
|
|
--cachedir= --flush --recurse --norecurse |
16
|
|
|
|
|
|
|
--quiet --noquiet --verbose --noverbose |
17
|
|
|
|
|
|
|
--index --noindex --backlink --nobacklink |
18
|
|
|
|
|
|
|
--header --noheader --poderrors --nopoderrors |
19
|
|
|
|
|
|
|
--css= --title= |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 DESCRIPTION |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
Converts files from pod format (see L) to HTML format. |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 ARGUMENTS |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
pod2html takes the following arguments: |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=over 4 |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=item help |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
--help |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Displays the usage message. |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=item htmldir |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
--htmldir=name |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Sets the directory to which all cross references in the resulting HTML file |
42
|
|
|
|
|
|
|
will be relative. Not passing this causes all links to be absolute since this |
43
|
|
|
|
|
|
|
is the value that tells Pod::Html the root of the documentation tree. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Do not use this and --htmlroot in the same call to pod2html; they are mutually |
46
|
|
|
|
|
|
|
exclusive. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=item htmlroot |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
--htmlroot=URL |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Sets the base URL for the HTML files. When cross-references are made, the |
53
|
|
|
|
|
|
|
HTML root is prepended to the URL. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Do not use this if relative links are desired: use --htmldir instead. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Do not pass both this and --htmldir to pod2html; they are mutually exclusive. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=item infile |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
--infile=name |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Specify the pod file to convert. Input is taken from STDIN if no |
64
|
|
|
|
|
|
|
infile is specified. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=item outfile |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
--outfile=name |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Specify the HTML file to create. Output goes to STDOUT if no outfile |
71
|
|
|
|
|
|
|
is specified. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=item podroot |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
--podroot=name |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
Specify the base directory for finding library pods. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item podpath |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
--podpath=name:...:name |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Specify which subdirectories of the podroot contain pod files whose |
84
|
|
|
|
|
|
|
HTML converted forms can be linked-to in cross-references. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=item cachedir |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
--cachedir=name |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
Specify which directory is used for storing cache. Default directory is the |
91
|
|
|
|
|
|
|
current working directory. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=item flush |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
--flush |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
Flush the cache. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=item backlink |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
--backlink |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
Turn =head1 directives into links pointing to the top of the HTML file. |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=item nobacklink |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
--nobacklink |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
Do not turn =head1 directives into links pointing to the top of the HTML file |
110
|
|
|
|
|
|
|
(default behaviour). |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=item header |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
--header |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
Create header and footer blocks containing the text of the "NAME" section. |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=item noheader |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
--noheader |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
Do not create header and footer blocks containing the text of the "NAME" |
123
|
|
|
|
|
|
|
section (default behaviour). |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
=item poderrors |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
--poderrors |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
Include a "POD ERRORS" section in the outfile if there were any POD errors in |
130
|
|
|
|
|
|
|
the infile (default behaviour). |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=item nopoderrors |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
--nopoderrors |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
Do not include a "POD ERRORS" section in the outfile if there were any POD |
137
|
|
|
|
|
|
|
errors in the infile. |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
=item index |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
--index |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
Generate an index at the top of the HTML file (default behaviour). |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
=item noindex |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
--noindex |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
Do not generate an index at the top of the HTML file. |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
=item recurse |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
--recurse |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
Recurse into subdirectories specified in podpath (default behaviour). |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
=item norecurse |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
--norecurse |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
Do not recurse into subdirectories specified in podpath. |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
=item css |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
--css=URL |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
Specify the URL of cascading style sheet to link from resulting HTML file. |
169
|
|
|
|
|
|
|
Default is none style sheet. |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
=item title |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
--title=title |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
Specify the title of the resulting HTML file. |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
=item quiet |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
--quiet |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
Don't display mostly harmless warning messages. |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
=item noquiet |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
--noquiet |
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
Display mostly harmless warning messages (default behaviour). But this is not |
188
|
|
|
|
|
|
|
the same as "verbose" mode. |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
=item verbose |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
--verbose |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
Display progress messages. |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
=item noverbose |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
--noverbose |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
Do not display progress messages (default behaviour). |
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
=back |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
=head1 AUTHOR |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
Tom Christiansen, Etchrist@perl.comE. |
207
|
|
|
|
|
|
|
|
208
|
|
|
|
|
|
|
=head1 BUGS |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
See L for a list of known bugs in the translator. |
211
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
=head1 SEE ALSO |
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
L, L |
215
|
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
=head1 COPYRIGHT |
217
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
This program is distributed under the Artistic License. |
219
|
|
|
|
|
|
|
|
220
|
|
|
|
|
|
|
=cut |
221
|
|
|
|
|
|
|
|
222
|
1
|
|
|
1
|
|
428
|
use Pod::Html; |
|
1
|
|
|
|
|
509145
|
|
|
1
|
|
|
|
|
1151
|
|
223
|
|
|
|
|
|
|
|
224
|
1
|
|
|
|
|
5
|
pod2html @ARGV; |