support plan9port tr2post - tgtimes - The Gopher Times
(HTM) git clone git://bitreich.org/tgtimes git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/tgtimes
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 5e93fde82608670ffff48b0b086a5143dd283a10
(DIR) parent cc5790a0db20390433992e5dbff478dc2be2a6bb
(HTM) Author: glenda <glenda@9front.local>
Date: Sat, 23 Oct 2021 14:04:47 +0000
support plan9port tr2post
Diffstat:
A Makefile | 14 ++++++++++++++
M mkfile | 23 ++++++++++-------------
M news/part/bitreich-10k-meme-ban-pa… | 2 +-
M news/part/nixers-thread-nixers-boo… | 2 +-
M news/tgtimes.pdf | 0
M news/tgtimes.ps | 4 ++--
M news/tgtimes.txt | 4 ++--
M tmac/tmac.w | 12 +++++++-----
8 files changed, 37 insertions(+), 24 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
@@ -0,0 +1,14 @@
+PS= << /PageSize [323 670] >> setpagedevice
+
+.SUFFIXES: .mw .txt .ps .pdf
+
+.mw.pdf:
+ 9 troff tmac/tmac.w $< | tr2post -P '${PS}' | ps2pdf - >$@
+
+.mw.txt:
+ 9 nroff tmac/tmac.w $< | 9 col -xb | awk '/./{X=0} /^$$/{X++} X<5' >$@
+
+all: news/tgtimes.pdf news/tgtimes.txt
+
+clean:
+ rm -f news/tgtimes.{pdf,txt}
(DIR) diff --git a/mkfile b/mkfile
@@ -1,23 +1,20 @@
-tmac=/sys/lib/tmac
date=`{date -f YYYY-MM-DD}
ps='<< /PageSize [323 670] >> setpagedevice'
+tmac=/sys/lib/tmac/tmac
-%.txt: %.mw $tmac/tmac.w
- nroff -mw $prereq(1) | col -xb | awk '/./{X=0} /^$/{X++} X<5' >$target
+%.txt:V: %.mw
+ nroff -mw $prereq | col -xb | awk '/./{X=0} /^$/{X++} X<5' >$target
-%.ps: %.mw $tmac/tmac.w
- troff -mw $prereq(1) | dpost -P $ps >$target
-
-%.pdf: %.ps $tmac/tmac.w
- exec ps2pdf $prereq(1) >$target
+%.pdf:V: %.mw
+ troff -mw $prereq | aux/tr2post -P $ps | ps2pdf >$target
all:V: news/tgtimes.pdf news/tgtimes.txt
-view:V: $base.mw $tmac/tmac.w
- exec troff -mw $base.mw | proof
+view:V: $base.mw $tmac.w
+ troff -mw $base.mw | proof
clean:V:
- exec rm -f news/*.^(ps pdf txt)
+ rm -f news/tgtimes.^(pdf txt)
publish:V: $gph news/tgtimes.pdf news/tgtimes.txt
cp news/tgtimes.pdf $gph/tgtimes/tgtimes-$date.pdf
@@ -26,7 +23,7 @@ publish:V: $gph news/tgtimes.pdf news/tgtimes.txt
archive:V:
mv news $date
-$tmac/tmac.w:
- exec bind -a tmac $tmac
+$tmac.w:
+ bind -a tmac /sys/lib/tmac
<mkbitreich
(DIR) diff --git a/news/part/bitreich-10k-meme-ban-party-on-2021-10-31.mw b/news/part/bitreich-10k-meme-ban-party-on-2021-10-31.mw
@@ -11,7 +11,7 @@ Teeworlds
.IP •
SuperTuxKart on extreme level Be sure to run the newest version because of new race tracks and characters.
.IP •
-Armagetronade
+Armagetronad
.IP •
Wireguard
.IP •
(DIR) diff --git a/news/part/nixers-thread-nixers-book-club.mw b/news/part/nixers-thread-nixers-book-club.mw
@@ -27,5 +27,5 @@ https://nixers.net/showthread.php?tid=2466
.IP "Computer Science from the Bottom Up: "
a shop class for computer science: where do you go to learn what is under the hood?
.DS
-https://nixers.net/printthread.php?tid=2508
+https://nixers.net/showthread.php?tid=2508
.DE
(DIR) diff --git a/news/tgtimes.pdf b/news/tgtimes.pdf
Binary files differ.
(DIR) diff --git a/news/tgtimes.ps b/news/tgtimes.ps
@@ -861,7 +861,7 @@ mark
(the) 639 3568 w
(hood?) 816 3568 w
9 /Courier f
-(https://nixers.net/printthread.php?tid=2508) 261 3742 w
+(https://nixers.net/showthread.php?tid=2508) 261 3742 w
12 /Times-Roman f
(nixers) 2790 4152 w
16 /Times-Bold f
@@ -1435,7 +1435,7 @@ mark
12 /LucidaSansUnicode20 f
(") 216 2850 w
12 /Times-Roman f
-(Armagetronade) 336 2850 w
+(Armagetronad) 336 2850 w
12 /LucidaSansUnicode20 f
(") 216 3074 w
12 /Times-Roman f
(DIR) diff --git a/news/tgtimes.txt b/news/tgtimes.txt
@@ -79,7 +79,7 @@ ____________________________________________________________
computer science: where do you go to learn what is
under the hood?
- https://nixers.net/printthread.php?tid=2508
+ https://nixers.net/showthread.php?tid=2508
@@ -211,7 +211,7 @@ ____________________________________________________________
newest version because of new race tracks and
characters.
- • Armagetronade
+ • Armagetronad
• Wireguard
(DIR) diff --git a/tmac/tmac.w b/tmac/tmac.w
@@ -76,7 +76,7 @@
..
.
.de AB \"abstract beginning
-. #P 4v 0.6v
+. #P 4v \\n($Vu
. #-
. if \\n(.A=1 .sp \"if nroff, fix the ruler
. ft 2
@@ -110,11 +110,11 @@
..
.
.de PP \"paragraph
-. #P 4v 0.6v
+. #P 4v \\n($Vu
..
.
.de IP \"indented paragraph
-. #P 4v 0.6v
+. #P 4v \\n($Vu
. in 2n
. ta 2n
. ti -2n
@@ -122,14 +122,14 @@
..
.
.de QP \"start quoted paragraph
-. #P 4v 0.6v
+. #P 4v \\n($Vu
. in 1n
. ti -1n
>>
..
.
.de DS \"start literal "display" paragraph
-. #P 2v 0.6v
+. #P 2v \\n($Vu
. ft 5u
. cs 5u
. ps 9p
@@ -172,6 +172,8 @@
.if \n(.Au=1 .pl 900i \"paper height in nroff
.if \n(.Au=0 .nr $H 2v \"header space in troff
.if \n(.Au=1 .nr $H 3v \"header space in nroff
+.if \n(.Au=0 .nr $V 0.6v \"half space in troff
+.if \n(.Au=1 .nr $V 1v \"half space in nroff
.nr $M 0.3i \"page margins
.nr $L \n($Wu-\n($Mu-\n($Mu \"line length
.nr $B -\n($Mu