Skip to Content.
Sympa Menu

baslinux - Re: [BL] man2html script

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: jamtat AT mailsnare.net
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] man2html script
  • Date: Tue, 9 Dec 2003 12:13:34 -0600 (CST)

On Thu, 4 Dec 2003 keesan2 AT cyberspace.org wrote:

> >-------------------------------------------------------------
> >#!/bin/bash
> >zcat `find /usr/man/man* -name $1.*` | man2html | lynx -stdin
> >-------------------------------------------------------------
> >
> >Cheers,
> >Steven
>
> I installed some packages that put man pages into
> /usr/local/man/man* and /usr/X11R6/man/man*
>
> Should I modify the above to read /usr/*/man/man* ?
>
Here's what I did for those /usr/X11R6/man manpages. I made a symlink to
the /usr/X11R6/man directory under /usr and called it "manX". Then, I
edited the script as follows:

-------------------------------------------------------------
#!/bin/bash
zcat `find /usr/man*/man* -name $1.*` | man2html | lynx -stdin
-------------------------------------------------------------

(note the "man*" directly under /usr). This seems to allow the script to
follow the symlink to the /usr/X11R6/man directory and find manpages
there, while still allowing it to find manpages under /usr/man.

James




Archive powered by MHonArc 2.6.24.

Top of Page