SUMMARY: makewhatis with Perl5 man pages

From: Rachel Polanskis (r.polanskis@nepean.uws.edu.au)
Date: Sat Aug 16 1997 - 10:18:03 CDT


Hello,
A lot of people seem to ask why "/usr/lib/makewhatis" as supplied with
Solaris does not work correctly with the perl man pages.

Well, I was just reading "comp.unix.solaris" and came across
a very simple fix, developed by the fellow below.

I tested it out, and it works just great.

I am posting this here for the benefit of all on this list,
and so it is easily located in the search engine for the summary
archives
at latech.edu.

Perhaps this could even be included in the Sun-managers FAQ?
I think it is worthy of it.

Some of you might find it easier to simply paste
in the 1 line with the "+" sign than to use the patch utility,
since I had trouble patching the script, so I did it manually.

many thanks to the author of the fix.

rachel

Subject: Re: makewhatis for Solaris
Newsgroups: comp.unix.solaris,comp.lang.perl.misc
Date: 15 Aug 1997 11:52:52 +0000
Organization: University of Tromsoe, Norway
From: Tom Grydeland <tom@mitra.phys.uit.no>

trey@zipcon.net (Trey Valenta) writes:

> I would like to fix the windex file on my SunOS5.5.1 system so that the
> man pages for perl modules and other non Sun items get parsed properly
> and inserted into the windex. I searched DejaNews and found that some
> people had written some various perl scripts to replace sun's makewhatis
> script but the only script I could get my hands on didn't work right.
> (I won't waste any more bandwidth on this and assume that if you don't
> have/know of this problem, you don't have anything already written).

I've found and tried that script, and while it worked fine for Perl's
manpages, it broke several others. I have instead made this quick fix
to the makewhatis delivered with solaris:

*** /usr/lib/makewhatis.solaris Wed Apr 23 09:35:03 1997
--- /usr/lib/makewhatis Wed Apr 23 09:37:40 1997
***************
*** 38,43 ****
--- 38,44 ----
        -e 's/\\-/-/' \
        -e 's/\\\*-/-/' \
        -e 's/ VAX-11//' \
+ -e 's/\.IX Header "NAME" //' \
        -e 's/\\f[PRIB0123]//g' \
        -e 's/\\s[-+0-9]*//g' \
        -e '/ - /!d' \

> Trey Valenta trey@zipcon.net Seattle, WA

-- 
//Tom Grydeland <Tom.Grydeland@phys.uit.no>

-- Rachel Polanskis Kingswood, Greater Western Sydney, Australia grove@zeta.org.au http://www.zeta.org.au/~grove/grove.html r.polanskis@nepean.uws.edu.au http://www.nepean.uws.edu.au/ccd/ "Yow! Am I having fun yet?!" - John Howard^H^H^H^H^H^H^H^H Zippy the Pinhead



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:00 CDT