From 5a425eaf6e5cc80206e2562878fd9e24f398b973 Mon Sep 17 00:00:00 2001 From: wlemb Date: Fri, 23 Mar 2001 00:17:50 +0000 Subject: 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. --- tmac/strip.sed | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'tmac/strip.sed') 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 -- cgit v1.2.1