summaryrefslogtreecommitdiffhomepage
path: root/scripts/gen-reais
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/gen-reais
parentfe427d79968e26c4e4b9929282e6b38c613dd670 (diff)
Add more stuff
Diffstat (limited to 'scripts/gen-reais')
-rwxr-xr-xscripts/gen-reais19
1 files changed, 19 insertions, 0 deletions
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