#! /bin/sh

set -x

bin/mkdocfromc
bin/mkhyphen `find Categories -type f -print`
bin/mktroff `cat categories.list` > troff.in
# first, fix xrefs:
sqtroff -w3 tmac.doc troff.in > /dev/null
# now make the troff file
sqtroff -w3 tmac.doc troff.in |
    bin/addctligs |
    bin/lastline |
    sqdps |
    bin/fixps.pl > ps
