summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-06-25 19:17:52 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-06-25 19:17:52 +0200
commitfa5347b18f9bf028d97b02163cbf0e7cba369640 (patch)
tree5d0f543a905dd7f0749c68cfe612df2bb15b4b20
parenta4ce08bde0bcef664706b78146077ad7053a468b (diff)
Fix some bugs
-rwxr-xr-xbuild16
1 files changed, 7 insertions, 9 deletions
diff --git a/build b/build
index 1a4d07e..8663c41 100755
--- a/build
+++ b/build
@@ -230,10 +230,9 @@ compile_for_lang() {
close(CMD)
for (i = 1; i <= 3; i++) {
- if (i == 3 && denom == 5) {
- print "</tr>"
+ if (i == 3 && denom == 5)
break
- }
+
if (i == 1)
sig = "Wim Duisenberg"
else if (i == 2)
@@ -242,26 +241,25 @@ compile_for_lang() {
sig = "Mario Draghi"
print "<tr class=new-design><th colspan=12>"sig"</th></tr>"
- c = 0
+ c = 1
for (j = 1; j <= length(col); j++) {
split(col[j][1], s, " ")
if (s[i] == "/")
continue
- if (c % 4 == 0)
+ if ((c - 1) % 4 == 0)
printf "<trX>"
printf "<td colspan=X class=%s>", getcls(s[i])
printf "%s (%s)", cc2name[col[j][0]], cc2c[col[j][0]]
printf "</td>"
- if (c % 4 == 3 && j < length(col))
+ if (c % 4 == 0)
print "</tr>"
- if (c % 4 != 3 || j != length(col))
- c++
+ c++
}
- if ((c - 1) % 4 != 3)
+ if ((c - 2) % 4 != 3)
print "</tr>"
}
print "MARKER LOL"