Commit | Line | Data |
---|---|---|
731b0e83 KB |
1 | #! /bin/sed -f |
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 | |
7 | # provided that this notice is preserved and that due credit is given | |
8 | # to the University of California at Berkeley. The name of the University | |
9 | # may not be used to endorse or promote products derived from this | |
10 | # software without specific prior written permission. This software | |
11 | # is provided ``as is'' without express or implied warranty. | |
12 | # | |
13 | # @(#)strip.sed 5.1 (Berkeley) %G% | |
14 | # | |
15 | /%beginstrip%/{ | |
16 | h | |
17 | s/.*/.\\" This version has had comments stripped; an unstripped version is available./p | |
18 | g | |
19 | } | |
20 | /%beginstrip%/,$s/[. ][ ]*\\".*// | |
21 | /^$/d | |
22 | /\\n@/d |