#! /usr/bin/perl
#
# man2html.pl Version 1.2
# Copyright 1997, 1998 by Richard Dawe
#
# This software is distributed under the terms of the GNU General Public
# License, which should have been distributed with this file as LICENSE. Please
# read the notice below.
#
# ---
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# ---
#
# Description:
#
# This program uses the 'man' command to generate text output which is then
# converted into HTML using the PRE pre-formatted tags. Any references like
# "socket(2)" are converted into hyperlinks.
#
# The program must be run from the directory below the 'man' tree, i.e. the
# man pages will be in the relative paths man/man1, man/man2, etc. The pages
# will be put into a similar tree with paths like html/html1, etc.
#
# The program also generates an alphabetic index file in the directory below
# the man tree called 'index.html' which has links to all the man pages
# converted.
# Uses
use strict;
no strict 'vars';
use FileHandle;
use DirHandle;
# Copyright message
$COPYRIGHT_TEXT = 'man2html.pl Version 1.2, Copyright 1997, 1998 by Richard Dawe';
$COPYRIGHT_MESSAGE = <
man2html Translation Issues
man2html Translation Issues
man2html has some problems translating 'man' pages to HTML. These are:
- < and > cannot be translated properly, and are translated to (lt)
and (gt) respectively.
$COPYRIGHT_TEXT