/usr/bin/perl2html is in libpod-tree-perl 1.17-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | #!/usr/bin/perl
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
if 0; # not running under some shell
use 5.005;
use strict;
use Config;
use Getopt::Long;
use Pod::Tree::PerlBin;
use Pod::Tree::PerlDist;
use Pod::Tree::PerlFunc;
use Pod::Tree::PerlLib;
use Pod::Tree::PerlMap;
use Pod::Tree::PerlPod;
use Pod::Tree::PerlTop;
my %Opts;
$Opts{toc} = 1;
my $ok = GetOptions(\%Opts,
"v:i",
"toc!", "hr:i",
"bgcolor:s", "text:s");
$ok or die "Bad command line options\n";
my($Perl_Dir, $HTML_Dir) = @ARGV;
$HTML_Dir or die "perl2html Perl_Dir HTML_Dir\n";
$Perl_Dir =~ s( /$ )()x;
$HTML_Dir =~ s( /$ )()x;
$| = 1;
umask 0022;
-d $HTML_Dir or mkdir $HTML_Dir, 0777 or die "Can't mkdir $HTML_Dir: $!\n";
my($Perl_Map);
my($Perl_Bin, $Perl_Dist, $Perl_Func, $Perl_Lib, $Perl_Pod, $Perl_Top);
$Perl_Map = new Pod::Tree::PerlMap;
$Perl_Bin = new Pod::Tree::PerlBin $Perl_Dir, $HTML_Dir, $Perl_Map, %Opts;
$Perl_Dist = new Pod::Tree::PerlDist $Perl_Dir, $HTML_Dir, $Perl_Map, %Opts;
$Perl_Func = new Pod::Tree::PerlFunc $Perl_Dir, $HTML_Dir, $Perl_Map, %Opts;
$Perl_Lib = new Pod::Tree::PerlLib $Perl_Dir, $HTML_Dir, $Perl_Map, %Opts;
$Perl_Pod = new Pod::Tree::PerlPod $Perl_Dir, $HTML_Dir, $Perl_Map, %Opts;
$Perl_Top = new Pod::Tree::PerlTop $Perl_Dir, $HTML_Dir, $Perl_Map, %Opts;
$Perl_Pod ->scan;
$Perl_Bin ->scan(split /$Config{path_sep}/, $ENV{PATH});
$Perl_Dist->scan;
$Perl_Func->scan;
$Perl_Lib ->scan(@INC);
$Perl_Bin ->index;
$Perl_Dist->index;
$Perl_Func->index;
$Perl_Lib ->index;
$Perl_Pod ->index;
$Perl_Top ->index($Perl_Top, $Perl_Pod, $Perl_Lib, $Perl_Bin, $Perl_Dist);
$Perl_Bin ->translate;
$Perl_Dist->translate;
$Perl_Func->translate;
$Perl_Lib ->translate;
$Perl_Pod ->translate;
$Perl_Top ->translate;
__END__
=head1 NAME
perl2html - generate Perl documentation in HTML
=head1 SYNOPSIS
B<perl2html>
[B<-->[B<no>]B<toc>]
[B<--hr> I<level>]
[B<--bgcolor> B<#>I<rrggbb>]
[B<--text> B<#>I<rrggbb>]
[B<--v> I<verbosity>]
I<PerlDir> I<HTMLDir>
=head1 DESCRIPTION
B<perl2html> translates Perl documentation to HTML.
I<PerlDir> is the root of the Perl source tree.
The HTML pages are organized into a directory tree rooted at I<HTMLDir>.
A top-level index is written to I<HTMLDir>C</index.html>
In addition to the Perl sources,
B<perl2html> searches C<@INC> for module PODs,
and C<$ENV{PATH}> for program PODS.
All the HTML pages are created world-readable.
I<Perldir> and I<HTMLDir> must be absolute path names.
=head1 OPTIONS
=over 4
=item C<-->[C<no>]C<toc>
Includes or omits a table of contents in each page.
Default is to include the TOC.
=item C<--hr> I<level>
Controls the profusion of horizontal lines in the output, as follows:
level horizontal lines
0 none
1 between TOC and body
2 after each =head1
3 after each =head1 and =head2
Default is level 1.
=item C<--bgcolor> I<#rrggbb>
Set the background color to I<#rrggbb>.
Default is off-white.
=item C<--text> I<#rrggbb>
Set the text color to I<#rrggbb>.
Default is black.
=item C<--v> I<verbosity>
Verbosity level: 0, 1, 2, 3
=back
=head1 REQUIRES
Perl 5
L<C<Getopt::Long>>,
=head1 SEE ALSO
L<C<pods2html>>,
L<C<Pod::Tree>>,
L<C<Pod::Tree::HTML>>,
L<C<Pod::Tree::PerlBin>>,
L<C<Pod::Tree::PerlDist>>,
L<C<Pod::Tree::PerlFunc>>,
L<C<Pod::Tree::PerlLib>>,
L<C<Pod::Tree::PerlMap>>,
L<C<Pod::Tree::PerlPod>>,
L<C<Pod::Tree::PerlTop>>
=head1 AUTHOR
Steven McDougall, swmcd@world.std.com
=head1 COPYRIGHT
Copyright 2000 by Steven McDougall. This program is free software;
you can redistribute it and/or modify it under the same terms as Perl.
|