trap "rm $tmp ; exit" 2 3 15
: create toc input file for one section only
( cd man$1 ; /usr/lib/getNAME -t *.* |
: tocx files for all sections and everything else
: permuted index and toc files
echo "tocx? files missing; must run tocrc all first"
ptx -r -t -b break -f -w 108 -i ignore /tmp/cattoc man0/ptxx
< man0/tocx$x /usr/bin/grep '^intro' >$tmp
cd man0; $troff ptx.in ; cd ..
cd man0 ; $troff toc.in ; cd ..