mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-27 03:11:52 +01:00
11 lines
230 B
Sed
11 lines
230 B
Sed
# 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
|