summaryrefslogtreecommitdiffhomepage
path: root/scripts/gen-america
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-08-10 17:50:29 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-08-10 17:50:29 +0200
commit787b6a9346973f31c52f35b67739f7df1baafa91 (patch)
treed016dce37631abb4cad6b14e262422ae3f2ecb9b /scripts/gen-america
parentf28bf29eabe1a02010172ef51871d84e05d32899 (diff)
+ Lots of new American stuff
Diffstat (limited to 'scripts/gen-america')
-rwxr-xr-xscripts/gen-america11
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/gen-america b/scripts/gen-america
index bc7bd95..59eebf0 100755
--- a/scripts/gen-america
+++ b/scripts/gen-america
@@ -1,6 +1,6 @@
#!/bin/sh
-gawk '
+gawk -vfile="$1" '
@include "scripts/getcls.awk"
function getsup(i, s)
@@ -28,10 +28,13 @@ BEGIN {
}
{
- printf "trX { td .missing colspan=\"2\" {-%s}", $3
+ if (file == "sds")
+ printf "trX {"
+ else
+ printf "trX { td .missing colspan=\"2\" {-%s}", $3
split($2, a, / /)
for (i = 1; i <= length(a); i++)
- printf "td .%s colspan=\"1\" {-%s %s}", getcls(a[i]), $1, getsup(i)
+ printf "td .%s colspan=\"1\" {-%s %s}", getcls(a[i]), $1, getsup(i)
print "}"
}
@@ -39,4 +42,4 @@ END {
print "__MARKER__"
}
' data/world/$1.us \
-| scripts/last-of-design.sed
+| scripts/last-of-design.sed \ No newline at end of file