NetBSD/gnu/dist/groff/tmac/strip.sed
wiz 5220bc5f6e Import groff-1.19. Changes since 1.16.1: too many to list here (> 1000 lines
in the abridged version). Please read the included NEWS file for details.
2003-06-30 17:51:41 +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