move redist stuff to share/copyr directory
[unix-history] / usr / src / share / man / makewhatis.sed
CommitLineData
d631bd60
KB
1#!/bin/sh -
2#
3# Copyright (c) 1988 Regents of the University of California.
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms are permitted
57a981eb
KB
7# provided that the above copyright notice and this paragraph are
8# duplicated in all such forms and that any documentation,
9# advertising materials, and other materials related to such
10# distribution and use acknowledge that the software was developed
11# by the University of California, Berkeley. The name of the
12# University may not be used to endorse or promote products derived
13# from this software without specific prior written permission.
14# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
d631bd60 17#
7bfcbffd 18# @(#)makewhatis.sed 5.4 (Berkeley) %G%
d631bd60
KB
19#
20/(\([a-zA-Z0-9]*\).*UNIX Programmer's Manual/ {
21 s;.*(\([a-zA-Z0-9]*\).*UNIX.*;\1;
22 h
23 d
24}
7bfcbffd
KB
25
26/^N\bNA\bAM\bME\bE/!d
d631bd60
KB
27
28:name
29 s;.*;;
30 N
31 s;\n;;
4c5bf4fe
KB
32 # some twits underline the command name
33 s;_\b;;g
d631bd60
KB
34 /^[^ ]/b print
35 H
36 b name
37
38:print
39 x
40 s;\n;;g
41 /-/!d
42 s;\([a-z][A-z]\)-[ ][ ]*;\1;
43 s;\([a-zA-Z0-9,]\)[ ][ ]*;\1 ;g
44 s;[^a-zA-Z0-9]*\([a-zA-Z0-9]*\)[^a-zA-Z0-9]*\(.*\) - \(.*\);\2 (\1) - \3;
45 p
7bfcbffd 46 q