aboutsummaryrefslogtreecommitdiff
path: root/template.sh
diff options
context:
space:
mode:
authortg(x) <*@tg-x.net>2017-01-19 19:46:02 +0100
committertg(x) <*@tg-x.net>2017-01-19 19:46:02 +0100
commitdbf11d7daf526574bf2f7c9ef8cbca7ce56ae635 (patch)
treecbe7b803633b975a45b5ab206bfb9e60c9097c47 /template.sh
parentad575cbedbbc6d109241aebf225b7e07bdb17555 (diff)
downloadwww-dbf11d7daf526574bf2f7c9ef8cbca7ce56ae635.tar.gz
www-dbf11d7daf526574bf2f7c9ef8cbca7ce56ae635.zip
i18n: fix common includes
Diffstat (limited to 'template.sh')
-rwxr-xr-xtemplate.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/template.sh b/template.sh
index 4d498c71..54dc1709 100755
--- a/template.sh
+++ b/template.sh
@@ -1,9 +1,17 @@
1#!/bin/sh 1#!/bin/sh
2 2
3for f in $(git ls-files *.j2 common/*.j2); do 3for f in $(git ls-files *.j2); do
4 for ld in locale/*/; do 4 for ld in locale/*/; do
5 l=$(basename $ld) 5 l=$(basename $ld)
6 echo "$f: $l" 6 echo "$f: $l"
7 python template.py $f $l $(basename $f .html.j2).$l.html 7 python template.py $f $l $(dirname $f)/$(basename $f .html.j2).$l.html
8 done
9done
10
11for f in $(git ls-files common/*.j2); do
12 for ld in locale/*/; do
13 l=$(basename $ld)
14 echo "$f: $l"
15 python template.py $f $l $(dirname $f)/$(basename $f .inc.j2).$l.inc
8 done 16 done
9done 17done