Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 May 1997 19:30:56 +0100
From:      Brian Somers <brian@awfulhak.org>
To:        freebsd-hackers@freebsd.org
Subject:   www.freebsd.org
Message-ID:  <199705171830.TAA23763@awfulhak.demon.co.uk>

next in thread | raw e-mail | index | archive | help
Hi,

I don't know who the current web-meister is, but would it be
possible for you to do the following ?

The intention is to have browsable -current set of man pages.

In srm.conf:
----------
AddType text/man 1 2 3 4 5 6 7 8 9 1.gz 2.gz 3.gz 4.gz 5.gz 6.gz 7.gz 8.gz 9.gz
Action text/man /cgi-bin/man2html
----------

man2html:
----------
#! /bin/sh

if test -n "$PATH_TRANSLATED"; then
    test ."${PATH_TRANSLATED%.gz}" = ."$PATH_TRANSLATED" &&
        prog=/bin/cat || prog="/usr/bin/gunzip -c"
    $prog $PATH_TRANSLATED |
        /usr/bin/tbl |
        /usr/bin/groff -Wall -mtty-char -Tascii -man |
        /usr/bin/col |
        sed 's/.^H//g'
else
    echo "Internal server error.... oops !"
fi
----------

All we need to do then is point at a -current /usr/share/man
(cvs co'd regularly) somewhere under "Documentation", allowing
"options Indexes".

Thanks for any responses.
-- 
Brian <brian@awfulhak.org>, <brian@freebsd.org>
      <http://www.awfulhak.org>;
Don't _EVER_ lose your sense of humour....





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705171830.TAA23763>