summaryrefslogtreecommitdiffhomepage
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild28
1 files changed, 21 insertions, 7 deletions
diff --git a/build b/build
index 8663c41..d83c8ad 100755
--- a/build
+++ b/build
@@ -119,13 +119,19 @@ compile_for_lang() {
gawk -v CC=$CC '
@include "scripts/getcls.awk"
- $1 == CC && /.. start/ {
- sub(/.. start/, "")
- printf "<tr class=new-design><th colspan=8>%s</th></tr>\n", $0
+ FILENAME != "data/coins" {
+ split($0, a, "\t")
+ en2lang[a[1]] = a[2]
+ }
+
+ FILENAME == "data/coins" && $1 == CC && /.. start/ {
+ sub(/^.. start/, ""); sub(/^ /, "")
+ printf "<tr class=new-design><th colspan=8>%s</th></tr>\n",
+ en2lang[$0]
next
}
- $1 == CC {
+ FILENAME == "data/coins" && $1 == CC {
y = $10
if ($11 != "")
y_ = $11
@@ -151,7 +157,7 @@ compile_for_lang() {
}
END { print "MARKER LOL" }
- ' data/coins \
+ ' data/sections.$1 data/coins \
| last-of-design.sed \
| sed -E 's|(<td class=not-minted>)[^<]*(<sup>[^<]*</sup>)?(</td>)|\1\&nbsp;\3|g' \
| xfsub '<!-- SCOIN-TABLE-BODY -->' - $nod/index.html
@@ -353,10 +359,18 @@ compile_for_lang() {
sed -Ei "
/<nav>/,\\|</nav>|s|<a href=/../euro/${denom_}>([^<]*)</a>|<div class=selected>\\1</div>|
" $nod/index.html
+ case $1 in
+ en)
+ sep=.
+ ;;
+ *)
+ sep=,
+ ;;
+ esac
if [ $denom -eq 100 -o $denom -eq 200 ]; then
- sed -i "s/<!-- DENOM -->/${denom%00}.00/" $nod/index.html
+ sed -i "s/<!-- DENOM -->/${denom%00}${sep}00/" $nod/index.html
else
- sed -i "s/<!-- DENOM -->/0.`printf '%02d' $denom`/" $nod/index.html
+ sed -i "s/<!-- DENOM -->/0$sep`printf '%02d' $denom`/" $nod/index.html
fi
for CC in `cut -f1 data/tmp-data.$1`; do