diff options
author | wlemb <wlemb> | 2001-03-23 00:17:50 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2001-03-23 00:17:50 +0000 |
commit | 5a425eaf6e5cc80206e2562878fd9e24f398b973 (patch) | |
tree | b387186eef3de10b1b1ce6056eb7ddd77a5d0039 /tmac/strip.sed | |
parent | a736fb6eaf38fd5fbb5bc3bd20e59f42b0bad491 (diff) | |
download | groff-5a425eaf6e5cc80206e2562878fd9e24f398b973.tar.gz |
Replaced mdoc implementation. The new version is `state of the
art', using almost all new features of groff 1.17 -- it won't run
with older versions.
* tmac/doc.tmac: Completely rewritten.
* tmac/doc-common: Ditto.
* tmac/doc-nroff: Ditto.
* tmac/doc-ditroff: Ditto.
* tmac/doc-syms: Ditto.
* tmac/mdoc.local: New file.
* tmac/groff_mdoc.samples.man: Replaced with ...
* tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
* tmac/strip.sed: Updated.
* tmac/Makefile.sub: Updated.
* INSTALL: Updated.
* tmac/groff_man.man: Add `man.local' to the FILES section.
Diffstat (limited to 'tmac/strip.sed')
-rw-r--r-- | tmac/strip.sed | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tmac/strip.sed b/tmac/strip.sed index 3dac41e5..6133411d 100644 --- a/tmac/strip.sed +++ b/tmac/strip.sed @@ -1,3 +1,10 @@ -# strip all troff comments after a line containing `%beginstrip% -/%beginstrip%/,$s/[ ]*\\".*// +# strip comments, spaces, etc. after a line containing `%beginstrip%' +/%beginstrip%/,$ { + s/^\.[ ]*/./ + s/^\.\\".*/./ + s/\\".*/\\"/ + /\(.ds\)\|\(.as\)/!s/[ ]*\\"// + /\(.ds\)\|\(.as\)/s/\([^ ]\)\\"/\1/ + s/\([^/]\)doc-/\1/g +} /^\.$/d |