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-olympic-reais | 19 ------------------- scripts/gen-pres | 22 ++++++++++++++++++++++ scripts/gen-reais | 19 +++++++++++++++++++ 3 files changed, 41 insertions(+), 19 deletions(-) delete mode 100755 scripts/gen-olympic-reais create mode 100755 scripts/gen-pres create mode 100755 scripts/gen-reais (limited to 'scripts') diff --git a/scripts/gen-olympic-reais b/scripts/gen-olympic-reais deleted file mode 100755 index 3efd8b2..0000000 --- a/scripts/gen-olympic-reais +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -gawk ' -@include "scripts/getcls.awk" - -BEGIN { - FS = "\t" -} - -{ - printf "trX { td .missing {-%s} td .%s colspan=\"6\" {-%s} }\n", - $1, getcls($2), $3 -} - -END { - print "__MARKER__" -} -' data/world/olympic.bra \ -| scripts/last-of-design.sed 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 diff --git a/scripts/gen-reais b/scripts/gen-reais new file mode 100755 index 0000000..53d0387 --- /dev/null +++ b/scripts/gen-reais @@ -0,0 +1,19 @@ +#!/bin/sh + +gawk ' +@include "scripts/getcls.awk" + +BEGIN { + FS = "\t" +} + +{ + printf "trX { td .missing {-%s} td .%s colspan=\"6\" {-%s} }\n", + $1, getcls($2), $3 +} + +END { + print "__MARKER__" +} +' data/world/$1.bra \ +| scripts/last-of-design.sed -- cgit v1.2.3