summaryrefslogtreecommitdiffstats
path: root/contrib/groff/tmac/strip.sed
blob: 069c3db1fa60c089110e876d17405dd507615377 (plain)
1
2
3
4
5
6
7
8
9
10
# 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
OpenPOWER on IntegriCloud