summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-10-29 23:56:47 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-10-29 23:56:47 +0100
commit138920eb6c3c9b1d724e8bb2259b4e5467a1301c (patch)
treed6b583dbb40e9e5a3725cb3b4b8f22076018f777 /scripts
parentfe427d79968e26c4e4b9929282e6b38c613dd670 (diff)
Add more stuff
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen-pres22
-rwxr-xr-xscripts/gen-reais (renamed from scripts/gen-olympic-reais)2
2 files changed, 23 insertions, 1 deletions
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-olympic-reais b/scripts/gen-reais
index 3efd8b2..53d0387 100755
--- a/scripts/gen-olympic-reais
+++ b/scripts/gen-reais
@@ -15,5 +15,5 @@ BEGIN {
END {
print "__MARKER__"
}
-' data/world/olympic.bra \
+' data/world/$1.bra \
| scripts/last-of-design.sed