2 # This file is public domain.
3 # Originally written 1995, Geoffrey Tobin.
4 # The author has expressed the hope that any modification will retain enough content to remain useful. He would also appreciate being acknowledged as the original author in the documentation.
5 # This declaration added 2008/11/14 by Clea F. Rees with the permission of Geoffrey Tobin.
7 # Filter for converting "troff -mxx" to PostScript. This script is
8 # normally linked to the names man2ps, ms2ps, me2ps, and mm2ps.
11 # man2ps [<] cc.1 >cc.ps
12 # me2ps [<] foo.me >foo.ps
13 # mm2ps [<] foo.mm >foo.ps
14 # ms2ps [<] foo.ms >foo.ps
18 # Choose a troff format according to the scrip name.
24 *) echo "Unknown troff format:" ; exit 1 ;;
27 # We can use either GNU groff or Sun Solaris troff + dpost
28 if [ which groff > /dev/null ]
32 +elif [ which dpost > /dev/null ]
35 TROFF2PS="/usr/lib/lp/postscript/dpost"
37 + echo "Cannot find troff-to-PostScript filter" >&2
41 tbl $* | eqn | $TROFF | $TROFF2PS