Add raw file styling with no processing. - 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 45110ef8312c185c26327b37a314ece355633605
(DIR) parent 37d1188200d838b65157ab445952bac8eb0891b7
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Sun, 25 Jun 2023 14:55:54 +0200
Add raw file styling with no processing.
Diffstat:
M Makefile | 14 ++++++++++----
R opus7/0-xxx-header.txt -> opus7/0-… | 0
2 files changed, 10 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
@@ -3,11 +3,11 @@ include opus
date=$$(date +%Y-%m-%d)
tgtimes=opus$v/tgtimes$v
-.SUFFIXES: .txt .md .ps .pdf .ptxt
+.SUFFIXES: .txt .md .ps .pdf .ptxt .raw
all: ${tgtimes}.pdf
-# Mdfile conversation.
+# File type processing.
mdfiles=$(wildcard opus${v}/*.md)
mdptxtfiles=${mdfiles:.md=.ptxt}
.md.ptxt:
@@ -18,7 +18,13 @@ txtptxtfiles=${txtfiles:.txt=.ptxt}
.txt.ptxt:
cat $< > $<.ptxt
-${tgtimes}.txt: ${mdptxtfiles} ${txtptxtfiles}
+rawfiles=$(wildcard opus${v}/*.raw)
+rawptxtfiles=${rawfiles:.raw=.ptxt}
+.raw.ptxt:
+ cat $< > $<.ptxt
+
+
+${tgtimes}.txt: ${mdptxtfiles} ${txtptxtfiles} ${rawptxtfiles}
cat opus${v}/?-*.ptxt > ${tgtimes}.txt
@@ -27,7 +33,7 @@ ${tgtimes}.pdf: ${tgtimes}.txt
9 ps2pdf ${tgtimes}.ps ${tgtimes}.pdf
clean:
- rm -f ${tgtimes}.pdf ${tgtimes}.txt *.ptxt
+ rm -f ${tgtimes}.pdf ${tgtimes}.txt opus${v}/*.ptxt
publish: ${tgtimes}.pdf ${tgtimes}.txt
mkdir -p archive/${date}
(DIR) diff --git a/opus7/0-xxx-header.txt b/opus7/0-xxx-header.raw