File:  [CSRG BSD Unix] / 43BSDReno / share / man / tools / prsynops
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:57 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

#! /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.$$

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.