Add publish date and change article titles to something without bugs. - 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 6b9f392af85beccb3ce91cefdcdf30521a71a46f
(DIR) parent cbf394d27431b537bad89ffcd4f3498e7de430a7
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Tue, 8 Aug 2023 16:19:51 +0200
Add publish date and change article titles to something without bugs.
Diffstat:
M Makefile | 2 +-
M filters/title-boxes.filter | 28 +++++++++++++++++++++++++++-
M opus | 2 ++
3 files changed, 30 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
@@ -42,7 +42,7 @@ ${tgtimes}.txt: ${mdptxtfiles} ${txtptxtfiles} ${rawptxtfiles}
${tgtimes}.pdf: ${tgtimes}.txt
- u2ps --header="The Gopher Times Opus ${v}" \
+ u2ps --header="The Gopher Times Opus ${v} :: published ${publishdate}" \
-f Liberation \
--wrap \
--footer="page #" ${tgtimes}.txt ${tgtimes}.ps
(DIR) diff --git a/filters/title-boxes.filter b/filters/title-boxes.filter
@@ -2,6 +2,32 @@
export TERM=linux
+reset="$(tput sgr0)"
+italicformat="$(tput sitm)"
+italicreset="$(tput ritm)"
+boldformat="$(tput bold)"
+boldreset="$(echo -ne "\033[22m")"
+underlineformat="$(tput smul)"
+underlinereset="$(tput rmul)"
+reverseformat="$(tput rev)"
+reversereset="$(echo -ne "\033[27m")"
+
+redcolor="$(tput setaf 1)"
+greencolor="$(tput setaf 2)"
+yellowcolor="$(tput setaf 3)"
+bluecolor="$(tput setaf 4)"
+purplecolor="$(tput setaf 5)"
+cyancolor="$(tput setaf 6)"
+whitecolor="$(tput setaf 7)"
+darkgreycolor="$(tput setaf 8)"
+brightredcolor="$(tput setaf 9)"
+brightgreencolor="$(tput setaf 10)"
+brightyellowcolor="$(tput setaf 11)"
+brightbluecolor="$(tput setaf 12)"
+brightpurplecolor="$(tput setaf 13)"
+brightcyancolor="$(tput setaf 14)"
+brightwhitecolor="$(tput setaf 14)"
+
line0=""
line1=""
line2=""
@@ -21,7 +47,7 @@ do
nline2="$(printf "%s\n" "${line2}" \
| sed 's,^|[ #]*\(.*\)$,\1,')"
nline0="$(printf "%s\n" "${line0}" \
- | sed "s,\[ \],\[$(tput smul)$(tput bold)${nline2}$(tput sgr0)\],")"
+ | sed "s,\[ \],\[ ${underlineformat}${nline2}${reset} \],")"
printf "%s\n" "${nline0}"
#printf "%s\n" "${line1}"
;;
(DIR) diff --git a/opus b/opus
@@ -1 +1,3 @@
v=7
+publishdate=2023-08-08
+