From 9cad508b5c98ca1029460807249cafb712f28f1e Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 29 Oct 2023 22:39:48 +0100 Subject: Migrate the site to GSP and a Makefile --- scripts/gen-tnotes | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 scripts/gen-tnotes (limited to 'scripts/gen-tnotes') diff --git a/scripts/gen-tnotes b/scripts/gen-tnotes new file mode 100755 index 0000000..32d88c6 --- /dev/null +++ b/scripts/gen-tnotes @@ -0,0 +1,26 @@ +#!/bin/sh + +gawk ' +@include "scripts/getcls.awk" + +BEGIN { + FS = "\t" +} + +$1 == "TN" { + i++ + col[i][0] = $2 + col[i][1] = $3 + col[i][2] = $4 +} + +END { + for (i = 1; i <= length(col); i++) { + printf "trX {td .missing colspan=\"1\" {-€%s}"\ + "td .%s colspan=\"6\" {-%s}}\n", + col[i][0], getcls(col[i][2]), col[i][1] + } + print "__MARKER__" +} +' data/notes \ +| scripts/last-of-design.sed -- cgit v1.2.3