blob: 991b9fee83dfc7fd16421816887d3ff5efbef3c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#!/usr/bin/env perl
=head1 NAME
pod2html.pl
=head1 DESCRIPTION
Generate HTML from POD documentation
=head1 SEE ALSO
L<FS::Misc::Pod2Html>
=cut
use strict;
use warnings;
use v5.10;
use FS::Misc::Pod2Html 'fs_pod2html';
use FS::UID qw( checkuid );
die 'Not running uid freeside!'
unless checkuid();
my $html_dir = shift @ARGV
or HELP_MESSAGE('Please specify an OUTPUT_DIRECTORY');
HELP_MESSAGE("Directory $html_dir: No write access!")
unless -w $html_dir;
fs_pod2html( $html_dir );
sub HELP_MESSAGE {
my $error = shift;
print " ERROR: $error \n"
if $error;
print "
Generate HTML from Freeside POD documentation
Usage: pod2html.pl OUTPUT_DIRECTORY
";
exit;
}
|