freebsd-dev/contrib/groff/tmac/strip.sed
2001-04-17 12:12:05 +00:00

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