summaryrefslogtreecommitdiffhomepage
path: root/build
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-07-06 20:45:13 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-07-06 20:45:13 +0200
commitf9f55501cd3110046a162dc55932c3571e9eb379 (patch)
treefcd2de3813bc0de1fbd3f386d63b883b200acd54 /build
parent40966e0fc8f592e0c7c0a961318172292f59fb67 (diff)
Add an explicit errors section
Diffstat (limited to 'build')
-rwxr-xr-xbuild17
1 files changed, 17 insertions, 0 deletions
diff --git a/build b/build
index c881347..aa7f8c8 100755
--- a/build
+++ b/build
@@ -235,6 +235,23 @@ compile_for_lang() {
| colspan.sed \
| grep -Fv 'MARKER LOL' \
| xfsub '<!-- CCOIN-TABLE-BODY -->' - $nod/index.html
+
+ gawk -v CC=$CC -v lang=$1 '
+ BEGIN {
+ FS = "\t"
+ }
+
+ $1 == CC {
+ if (lang !~ /(en|ga|mt|nl)/) {
+ sub(/\./, ",", $3)
+ sub(/€/, "", $3)
+ sub(/$/, " €", $3)
+ }
+
+ printf "<tr><td>%s</td><td>%s</td><td colspan=5 class=have>%s</td></tr>",
+ $2, $3, $4
+ }
+ ' data/errors | xfsub '<!-- ECOIN-TABLE-BODY -->' - $nod/index.html
done
for denom in `grep -Eo '^[0-9]+' data/notes | uniq`; do