From cf1be05a20c7abd7405f5953679f39be9d1fa015 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 24 May 2023 22:39:19 +0200 Subject: Add skeleton for German --- build | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'build') diff --git a/build b/build index d7103ff..02f7be5 100755 --- a/build +++ b/build @@ -91,7 +91,7 @@ compile_for_lang() { sed -i " /|s|$CC|
$CC
| " $nod/index.html - grep -m1 "^$CC" data/country-info \ + grep -m1 "^$CC" data/country-info.$1 \ | cut -f2 \ | xfsub '' - $nod/index.html sed -Ei " @@ -186,12 +186,12 @@ compile_for_lang() { //,//d " $nod/index.html - gawk -v denom=$denom ' + gawk -v denom=$denom -v lang=$1 ' @include "scripts/getcls.awk" BEGIN { FS = "\t" } - FILENAME == "data/country-info" { cc2name[$1] = $3 } + FILENAME == "data/country-info." lang { cc2name[$1] = $3 } FILENAME == "data/note-info" && length == 0 { section++; next } FILENAME == "data/note-info" && section == 0 { cc2c[$1] = $2 } @@ -239,19 +239,19 @@ compile_for_lang() { } print "MARKER LOL" } - ' data/country-info data/note-info data/notes \ + ' data/country-info.$1 data/note-info data/notes \ | colspan.sed \ | last-of-design.sed \ | xfsub '' - $nod/index.html [ $denom -eq 500 ] && continue - gawk -v denom=$denom ' + gawk -v denom=$denom -v lang=$1 ' @include "scripts/getcls.awk" BEGIN { FS = "\t" } - FILENAME == "data/country-info" { cc2name[$1] = $3 } + FILENAME == "data/country-info." lang { cc2name[$1] = $3 } FILENAME == "data/note-info" && length == 0 { section++; next } FILENAME == "data/note-info" && section == 0 { cc2c[$1] = $2 } @@ -293,7 +293,7 @@ compile_for_lang() { } print "MARKER LOL" } - ' data/country-info data/note-info data/notes \ + ' data/country-info.$lang data/note-info data/notes \ | colspan.sed \ | last-of-design.sed \ | xfsub '' - $nod/index.html -- cgit v1.2.3