File:  [CSRG BSD Unix] / 3BSD / cmd / makewhatis.sh
Revision 1.1: download - view: text, annotated - select for diffs
Tue Apr 24 16:12:53 2018 UTC (8 years, 1 month ago) by root
CVS tags: MAIN, HEAD
Initial revision

rm -f /tmp/whatis
cd /usr/man
for i in man1 man2 man3 man4 man5 man6 man7 man8
do
	cd $i
	/usr/lib/getNAME *.*
	cd ..
done >/tmp/whatis
ed - /tmp/whatis <<\!
g/\\-/s//-/
g/\\\*-/s//-/
g/ VAX-11/s///
1,$s/.TH [^ ]* \([^ 	]*\).*	\([^-]*\)/\2(\1)	/
g/	 /s//	/g
w /tmp/whatis2
q
!
/usr/ucb/expand -24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100 /tmp/whatis2 | sort >/usr/lib/whatis

unix.superglobalmegacorp.com

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