No empty .Rs/.Re
[netbsd-mini2440.git] / share / man / tools / prsynops
blobf1b7b0bac76703dc800b48a3d13aebf722a752a1
1 #! /bin/sh
3 # $NetBSD$
5 set x $*
6 . ./.param
8 for dir in $DIRLST
9 do
10 date > $TMPDIR/synops$dir
11 echo >> $TMPDIR/synops$dir
12 cd $MANDIR/man$dir
13 for file in $FILLST
15 so=`line < $file | sed "s/ .*//"`
16 if test "$so" = ".so"
17 then
18 continue
20 nroff -man $file > $TMPDIR/tmp.$$
21 echo "$file:" >> $TMPDIR/synops$dir
22 ed - $TMPDIR/tmp.$$ >> $TMPDIR/synops$dir <<!
23 /SYNOPSIS/;+,/^ [A-Z][A-Z][A-Z][A-Z]/-p
26 done
27 done
29 rm -f $TMPDIR/tmp.$$