BSD 2 development
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Wed, 9 May 1979 03:45:46 +0000 (19:45 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Wed, 9 May 1979 03:45:46 +0000 (19:45 -0800)
Work on file src/makewhatis.sh

Synthesized-from: 2bsd

src/makewhatis.sh [new file with mode: 0755]

diff --git a/src/makewhatis.sh b/src/makewhatis.sh
new file mode 100755 (executable)
index 0000000..5b909b7
--- /dev/null
@@ -0,0 +1,19 @@
+# makewhatis
+# (c) 1979 Regents of the University of California
+rm -f /tmp/whatis
+cd /usr/man
+foreach i ( man1 man2 man3 man4 man5 man6 man7 man8 manu manp )
+       cd $i
+       /usr/ucb/getNAME *.* >> /tmp/whatis
+       cd ..
+end
+ed - /tmp/whatis <<'EOF'
+g/\\-/s//-/
+g/\\\*-/s//-/
+g/ VAX-11/s///
+1,$s/...[^     ]* \([^         ][^     ]*\) *  \([^-]*\)/\2(\1)        /
+g/      /s//   /g
+w /tmp/whatis2
+'EOF'
+/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
+rm /tmp/whatis