From 787b6a9346973f31c52f35b67739f7df1baafa91 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 10 Aug 2025 17:50:29 +0200 Subject: + Lots of new American stuff --- scripts/gen-america | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'scripts/gen-america') 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 -- cgit v1.2.3