summaryrefslogtreecommitdiffstats
path: root/share/man/tools/prsynops
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1994-05-30 19:09:18 +0000
committerrgrimes <rgrimes@FreeBSD.org>1994-05-30 19:09:18 +0000
commitb0d61785cae024b1f44119446a940ee14c9ac959 (patch)
tree5a495a583b002ae9e57f09848ae697160708c220 /share/man/tools/prsynops
parentd43599f73ba5858e573c7ad8b284f6a0808c5c93 (diff)
downloadFreeBSD-src-b0d61785cae024b1f44119446a940ee14c9ac959.zip
FreeBSD-src-b0d61785cae024b1f44119446a940ee14c9ac959.tar.gz
BSD 4.4 Lite Share Sources
Diffstat (limited to 'share/man/tools/prsynops')
-rwxr-xr-xshare/man/tools/prsynops26
1 files changed, 26 insertions, 0 deletions
diff --git a/share/man/tools/prsynops b/share/man/tools/prsynops
new file mode 100755
index 0000000..a0cfffe
--- /dev/null
+++ b/share/man/tools/prsynops
@@ -0,0 +1,26 @@
+#! /bin/sh
+set x $*
+. ./.param
+
+for dir in $DIRLST
+do
+ date > $TMPDIR/synops$dir
+ echo >> $TMPDIR/synops$dir
+ cd $MANDIR/man$dir
+ for file in $FILLST
+ do
+ so=`line < $file | sed "s/ .*//"`
+ if test "$so" = ".so"
+ then
+ continue
+ fi
+ nroff -man $file > $TMPDIR/tmp.$$
+ echo "$file:" >> $TMPDIR/synops$dir
+ ed - $TMPDIR/tmp.$$ >> $TMPDIR/synops$dir <<!
+ /SYNOPSIS/;+,/^ [A-Z][A-Z][A-Z][A-Z]/-p
+ q
+!
+ done
+done
+
+rm -f $TMPDIR/tmp.$$
OpenPOWER on IntegriCloud