diff options
| author | Mitch Jackson <mitch@freeside.biz> | 2019-02-03 22:33:37 -0500 |
|---|---|---|
| committer | Mitch Jackson <mitch@freeside.biz> | 2019-02-06 22:42:57 -0500 |
| commit | bc94af6ddda66f460442e387e60de22c76c617dc (patch) | |
| tree | 1c551d098ab6b78c2d0c42df82b302e08756762b /FS/bin/freeside-pod2html | |
| parent | 66aa1878e8f094ba1eaa4c0d17f117101ed3c88c (diff) | |
RT# 81961 Move POD to HTML code into FS::Misc::Pod2Html module
Diffstat (limited to 'FS/bin/freeside-pod2html')
| -rwxr-xr-x | FS/bin/freeside-pod2html | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/FS/bin/freeside-pod2html b/FS/bin/freeside-pod2html new file mode 100755 index 000000000..991b9fee8 --- /dev/null +++ b/FS/bin/freeside-pod2html @@ -0,0 +1,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; +} + |
