ref: bfca6fa29b01c68b830f978806cbe692f7db24fb
parent: 275fc2f9722ac5baf4240e067802bc7591cc0823
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue May 9 12:23:48 EDT 2017
/sys/doc: fix mkfile to and remove files that now can be regenerated
--- a/sys/doc/8½/mkfile
+++ b/sys/doc/8½/mkfile
@@ -7,3 +7,7 @@
8½.html:D: 8½.ms
tbl 8½.ms | htmlroff -ms -mhtml >8½.html
+%.pdf:D: %.ps
+ cat ../docfonts $stem.ps >_$stem.ps
+ # distill _$stem.ps && mv _$stem.pdf $stem.pdf
+ ps2pdf _$stem.ps $stem.pdf && rm -f _$stem.ps
--- a/sys/doc/mkfile
+++ b/sys/doc/mkfile
@@ -73,7 +73,7 @@
cleanps $target
# troff gets some scary-looking errors but they're okay
-%.ps:D: %.ms
+&.ps:D: &.ms
mac=(-ms)
if(~ $stem comp utf 9 contents) mac=(-ms -mnihongo)
{ echo $FONTS; cat $stem.ms } | pic | tbl | eqn | @@ -98,6 +98,11 @@
&.html:D: &.ms
pic $stem.ms | tbl | eqn | htmlroff -ms -mhtml >$target
+&.pdf:D: &.ps
+ cat docfonts $stem.ps >_$stem.ps
+ # distill _$stem.ps && mv _$stem.pdf $stem.pdf
+ ps2pdf _$stem.ps $stem.pdf && rm -f _$stem.ps
+
pdf:V: $PDF
^(8½|acme|fs|il|net|sam|venti)/([^/]*\.(pdf|ps|html))'$':R:
@@ -106,11 +111,6 @@
^(8½|acme|fs|il|net|sam|venti)\.html'$':R: \1/\1.html
cp $stem1/$stem1.html .
-
-%.pdf: %.ps
- cat docfonts $stem.ps >_$stem.ps
- # distill _$stem.ps && mv _$stem.pdf $stem.pdf
- ps2pdf _$stem.ps $stem.pdf && rm -f _$stem.ps
%.all:V:
mk $stem.ps $stem.pdf $stem.html
--- a/sys/doc/net/mkfile
+++ b/sys/doc/net/mkfile
@@ -16,6 +16,11 @@
net.html:D: $DEPS
tbl net.ms | htmlroff -ms -mhtml >net.html
+%.pdf:D: %.ps
+ cat ../docfonts $stem.ps >_$stem.ps
+ # distill _$stem.ps && mv _$stem.pdf $stem.pdf
+ ps2pdf _$stem.ps $stem.pdf && rm -f _$stem.ps
+
clean:V:
rm -f net.ps tree.pout net.trout
--- a/sys/doc/nupas/mkfile
+++ b/sys/doc/nupas/mkfile
@@ -6,6 +6,9 @@
eval `{doctype macros.ms $stem.ms} | \lp -m.9 -dstdout >$target
+%.html:DQ: %.ms
+ htmlroff -ms -mhtml $stem.ms >$target
+
%.pdf:DQ: %.ps
cat ../docfonts $stem.ps >_$stem.ps
ps2pdf _$stem.ps $stem.pdf && rm -f _$stem.ps
--
⑨