trap "rm $tmp ; exit" 2 3 15
if [ $# -eq 2 -a $1 = "3" ]
: create toc input files
for section
3 only
( cd man3
; for x
in 3 3f
3m
3n
3s
3x
3c
/usr
/lib
/getNAME
-t *.
$x |
: 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 man
0/ignore \
for x
in 1 2 3 3f
3m
3n
3s
3x
3c
4 5 6 7 8
< man
0/tocx
$x grep '^intro' >$tmp
cd man0
; $troff ptx.
in ; cd ..
cd man0
; $troff toc.
in ; cd ..