freebsd-dev/contrib/groff/tmac/strip.sed

11 lines
230 B
Sed
Raw Normal View History

2001-04-17 12:28:00 +00:00
# strip comments, spaces, etc. after a line containing `%beginstrip%'
/%beginstrip%/,$ {
s/^\.[ ]*/./
s/^\.\\".*/./
s/\\".*/\\"/
/\(.[ad]s\)/!s/[ ]*\\"//
/\(.[ad]s\)/s/\([^ ]*\)\\"/\1/
s/\([^/]\)doc-/\1/g
}
1996-09-07 16:18:32 +00:00
/^\.$/d