How to format man pages??

Dave Ciemiewicz ciemo at bananapc.wpd.sgi.com
Tue Feb 12 07:59:43 AEST 1991


In article <907 at ki.UUCP>, dwatts at ki.UUCP (Dan Watts) writes:
|> I've got a problem.  I purchased the Documentors Workbench software from
|> SGI so I could format man pages.  I put an unformatted man page into
|> /usr/catman/local/man1/ and entered "man name" and it just did a plain
|> cat of the unformatted file.  If I manually do an "nroff -man name" the

IRIX man uses a file typing heuristic for determining whether or not to format
a manual page versus trying to use the containing directory name for
determining the file type.  The heuristic is similar to the one used by the
command file(1) which reports the type of a file's contents.  Unfortunately,
there is a bug in the heuristic which does not consider n/troff style comments
for purposes of file typing, thus the heuristic "thinks" the file is just a 
cat'able file.  To verify this, trying doing "file foo.1" and see if file
"thinks" your man page is nroff text or ascii text.

An (albeit ugly) workaround is to strip nroff comments from the man pages
installed in /usr/catman/local.  (How can I duck to escape the flack from
this one?)

This bug has been fixed for the upcoming major release.  This new man also
features BSD lpr support and other enhancements requested by participants in
this news group.



More information about the Comp.sys.sgi mailing list