PageRenderTime 17ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/groff/tmac/strip.sed

https://bitbucket.org/freebsd/freebsd-head/
sed | 10 lines | 9 code | 0 blank | 1 comment | 0 complexity | e19e0263538fe291940c0623976301d2 MD5 | raw file
 1# strip comments, spaces, etc. after a line containing `%beginstrip%'
 2/%beginstrip%/,$ {
 3  s/^\.[	 ]*/./
 4  s/^\.\\".*/./
 5  s/\\".*/\\"/
 6  /\(.[ad]s\)/!s/[	 ]*\\"//
 7  /\(.[ad]s\)/s/\([^	 ]*\)\\"/\1/
 8  s/\([^/]\)doc-/\1/g
 9}
10/^\.$/d