diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gen-america | 11 |
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 |