remove .INCLUDES, it's going away
[unix-history] / usr / src / share / me / strip.sed
CommitLineData
731b0e83
KB
1#! /bin/sed -f
2#
0a1cd3e4 3# Copyright (c) 1988 The Regents of the University of California.
731b0e83
KB
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms are permitted
0a1cd3e4
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.
731b0e83 17#
0a1cd3e4 18# @(#)strip.sed 5.2 (Berkeley) %G%
731b0e83
KB
19#
20/%beginstrip%/{
21 h
22 s/.*/.\\" This version has had comments stripped; an unstripped version is available./p
23 g
24}
25/%beginstrip%/,$s/[. ][ ]*\\".*//
26/^$/d
27/\\n@/d