From 138920eb6c3c9b1d724e8bb2259b4e5467a1301c Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 29 Oct 2023 23:56:47 +0100 Subject: Add more stuff --- scripts/gen-pres | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 scripts/gen-pres (limited to 'scripts/gen-pres') diff --git a/scripts/gen-pres b/scripts/gen-pres new file mode 100755 index 0000000..a1e7cb1 --- /dev/null +++ b/scripts/gen-pres @@ -0,0 +1,22 @@ +#!/bin/sh + +gawk ' +@include "scripts/getcls.awk" + +BEGIN { + FS = "\t" +} + +{ + printf "trX { td .missing colspan=\"1\" {-%s}", $1 + split($2, a, / /) + for (i = 1; i <= length(a); i++) + printf "td .%s colspan=\"2\" {-%s}", getcls(a[i]), $3 + print "}" +} + +END { + print "__MARKER__" +} +' data/world/pds.us \ +| scripts/last-of-design.sed -- cgit v1.2.3