8 trap "rm -f $TMPDIR/*$$; exit;" 2
12 /bin
/ls $MANDIR/man
$sec > $TMPDIR/man
${sec}$$
19 echo "$dt\n" > $TMPDIR/not.one.line
$sec
20 echo "$dt\n" > $TMPDIR/name.order
$sec
21 echo "$dt\n" > $TMPDIR/file.match
$sec
22 echo "$dt\n" > $TMPDIR/no.TH
$sec
23 echo "$dt\n" > $TMPDIR/no.NAME
$sec
26 so
=`line < $file | sed "s/ .*$//"`
31 grep "^.SH NAME" $file > /dev
/null
34 echo $file >> $TMPDIR/no.NAME
$sec
37 grep "^.SH SYNOPSIS" $file > /dev
/null
40 lines
=`cat $file | sed -n "/\.SH NAME/,/\.SH SYNOP/p" | wc -l | sed "s/ //g"`
42 lines
=`cat $file | sed -n "/\.SH NAME/,/\.SH DESCR/p" | wc -l | sed "s/ //g"`
46 echo $file >> $TMPDIR/not.one.line
$sec
49 th
=`grep "^.TH" $file | line`
52 echo $file >> $TMPDIR/no.TH
$sec
56 name
=`echo $2 | tr [A-Z] [a-z]`
57 suf
=`echo $3 | tr [A-Z] [a-z]`
59 if test $fname != $file
61 echo $file >> $TMPDIR/file.match
$sec
63 ed
- $file > $TMPDIR/tmp.$$
<<!
67 nname
=`cat $TMPDIR/tmp.$$ | sed -e "s/ .*//" -e "s/,.*//"`
69 if test $name != $nname
71 echo $file >> $TMPDIR/name.order
$sec
73 done < $TMPDIR/man
${sec}$$