diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -91,7 +91,7 @@ compile_for_lang() { sed -i " /<nav>/,\\|</nav>|s|<a href=/../euro/$cc>$CC</a>|<div class=selected>$CC</div>| " $nod/index.html - grep -m1 "^$CC" data/country-info \ + grep -m1 "^$CC" data/country-info.$1 \ | cut -f2 \ | xfsub '<!-- DEMON -->' - $nod/index.html sed -Ei " @@ -186,12 +186,12 @@ compile_for_lang() { /<!-- IF-[0-9]+ -->/,/<!-- FI-[0-9]+ -->/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 '<!-- 2002-TABLE-BODY -->' - $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 '<!-- EUROPA-TABLE-BODY -->' - $nod/index.html |