mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
12 lines
242 B
Sed
12 lines
242 B
Sed
# $FreeBSD$
|
|
# strip comments, spaces, etc. after a line containing `%beginstrip%'
|
|
/%beginstrip%/,$ {
|
|
s/^\.[ ]*/./
|
|
s/^\.\\".*/./
|
|
s/\\".*/\\"/
|
|
/\(.[ad]s\)/!s/[ ]*\\"//
|
|
/\(.[ad]s\)/s/\([^ ]*\)\\"/\1/
|
|
s/\([^/]\)doc-/\1/g
|
|
}
|
|
/^\.$/d
|