summaryrefslogtreecommitdiffhomepage
path: root/build
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-05-24 22:39:19 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-05-24 22:39:19 +0200
commitcf1be05a20c7abd7405f5953679f39be9d1fa015 (patch)
tree5fa73c983fe2b8aba579db9215ee674f04d4ea15 /build
parent8372e02f11e0914324ebf9f495393b4a9df01dd7 (diff)
Add skeleton for German
Diffstat (limited to 'build')
-rwxr-xr-xbuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/build b/build
index d7103ff..02f7be5 100755
--- a/build
+++ b/build
@@ -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