Do folding before boxes and apply for .txt input too. - tgtimes - The Gopher Times
HTML git clone git://bitreich.org/tgtimes git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/tgtimes
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
---
DIR commit 79cdcd13e863b43d9a850533fc59fbca84cfb232
DIR parent 1e2c8110d7aa42bff0a5821e2d08d587e5212872
HTML Author: Christoph Lohmann <20h@r-36.net>
Date: Tue, 8 Aug 2023 11:50:48 +0200
Do folding before boxes and apply for .txt input too.
Diffstat:
M Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/Makefile b/Makefile
@@ -11,12 +11,12 @@ all: ${tgtimes}.pdf
mdfiles=$(wildcard opus${v}/*.md)
mdptxtfiles=${mdfiles:.md=.ptxt}
.md.ptxt:
- cat $< | boxes -d boxquote -p a1 -s 70x | fold -s > $<.ptxt
+ cat $< | fold -s | boxes -d boxquote -p a1 -s 70x > $<.ptxt
txtfiles=$(filter-out ${tgtimes}.txt, $(wildcard opus${v}/*.txt))
txtptxtfiles=${txtfiles:.txt=.ptxt}
.txt.ptxt:
- cat $< | fold -s > $<.ptxt
+ cat $< | fold -s | boxes -d boxquote -p a1 -s 70x > $<.ptxt
rawfiles=$(wildcard opus${v}/*.raw)
rawptxtfiles=${rawfiles:.raw=.ptxt}