# Copyright (c) 1980 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)tocrc 6.2 (Berkeley) 5/16/86
trap "rm $tmp ; exit" 2 3 15
if [ $# -eq 2 -a $1 = "3" ]
: create toc input files
for section
3 only
( cd ..
/man3
; /usr
/lib
/getNAME
-t `ls *.3 *.3[mnsxc] | sort` |
sed \
/usr
/lib
/getNAME
-t *.3f |
sed \
: 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 \
for x
in 1 2 3 3f
4 5 6 7 8
< tocx
$x grep '^intro' >$tmp