From b3c367d9255bcc296b6740d1b437335d445b7253 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 25 May 2023 00:33:13 +0200 Subject: Don’t mind me MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'build') diff --git a/build b/build index 02f7be5..669701b 100755 --- a/build +++ b/build @@ -64,9 +64,14 @@ compile_for_lang() { sed -Ei ' /|s|([^<]*)|
\1
| ' $nod/index.html - gawk -v denom=$denom ' + gawk -v denom=$denom -v lang=$1 ' @include "scripts/getcls.awk" + function fmt(n) + { + return lang ~ /(en|ga|mt|nl)/ ? "€" n : n " €" + } + $1 == "TN" { i++ col[i][0] = $2 @@ -77,8 +82,8 @@ compile_for_lang() { END { for (i = 1; i <= length(col); i++) { printf \ - "€%d%s\n",\ - col[i][0], getcls(col[i][2]), col[i][1] + "%s%s\n", + fmt(col[i][0]), getcls(col[i][2]), col[i][1] } } ' data/notes | xfsub '' - $nod/index.html -- cgit v1.2.3