SGI man and groff

Allow man to use GNU groff

If you don't install the Documentor's Workbench software -- the default -- you won't be able to format man pages for locally installed software. We installed GNU's groff suite instead, but SGI's man needs to be tricked into using it. The following script, installed in /usr/local/bin/tbl is needed, and it also describes what else needs to be done, in the system area, and the local area.
#!/bin/sh
#
# This is an icky hack to make SGI `man' work with GNU gtbl.
#
# SGI's `man' requires the Documents Workbench suite, but you can convince
# the SGI to use GNU's groff instead. Unfortunately, `man' has some hardwired
# paths. The following links need to be created:
#
# /usr/lib/tmac		-> /usr/local/lib/groff/tmac
# /usr/pub/eqnchar	-> /usr/local/bin/gneqn
# /usr/local/bin/eqn	-> /usr/local/bin/geqn		#probably not necessary
# /usr/local/bin/neqn	-> /usr/local/bin/gneqn
# /usr/local/bin/nroff	-> /usr/local/bin/gnroff
#
# Finally, man invokes tbl, which we might link to gtbl, but it fails
# because SGI calls it with flags `-TX', which gtbl rejects. So here
# we remove this flag; in this case, with brute force -- removing all flags
# from the call to gtbl. I probably should just filter the ones gtbl
# doesn't like, but this works for the nonce.
#
# Fri Dec 23 14:04:25 1994 Chris Shenton 
# Created.
###############################################################################

gtbl
exit

Chris Shenton