ref: adf681cd88d306c4afd995150bbb21d3286d0eba
parent: a093dbb53911954c664b4ebfa0457f5f46011cda
author: mkf <mkf@cloud9p.org>
date: Fri Oct 11 15:00:09 EDT 2024
use wiki2ms in wiki.
--- a/doc/html
+++ b/doc/html
@@ -34,7 +34,10 @@
echo '<p><div id="content">'
-ms2html < $gitfs/$ref/tree/$file.ms
+if(test -r $gitfs/$ref/tree/$file.wms)
+ wm/wiki2ms $gitfs/$ref/tree/$file.wms | ms2html
+if not
+ ms2html < $gitfs/$ref/tree/$file.ms
echo ' </div>
</p>
--- a/doc/pdf
+++ b/doc/pdf
@@ -26,4 +26,7 @@
}
cd $gitfs/$ref/tree
-troff -ms $gitfs/$ref/tree/$file.ms | dpost | ps2pdf
+if(test -r $gitfs/$ref/tree/$file.wms)
+ wm/wiki2ms $gitfs/$ref/tree/$file.wms | troff -ms | dpost | ps2pdf
+if not
+ troff -ms $gitfs/$ref/tree/$file.ms | dpost | ps2pdf
--- a/doc/ps
+++ b/doc/ps
@@ -26,4 +26,7 @@
}
cd $gitfs/$ref/tree
-troff -ms $gitfs/$ref/tree/$file.ms | dpost
+if(test -r $gitfs/$ref/tree/$file.wms)
+ wm/wiki2ms $gitfs/$ref/tree/$file.wms | troff -ms | dpost
+if not
+ troff -ms $gitfs/$ref/tree/$file.ms | dpost
--- a/doc/txt
+++ b/doc/txt
@@ -26,5 +26,7 @@
}
cd $gitfs/$ref/tree
-nroff -ms $gitfs/$ref/tree/$file.ms | col -bf
-
+if(test -r $gitfs/$ref/tree/$file.wms)
+ wm/wiki2ms $gitfs/$ref/tree/$file.wms | nroff -ms | col -bf
+if not
+ nroff -ms $gitfs/$ref/tree/$file.ms | col -bf