diff options
author | tg(x) <*@tg-x.net> | 2017-01-19 19:46:02 +0100 |
---|---|---|
committer | tg(x) <*@tg-x.net> | 2017-01-19 19:46:02 +0100 |
commit | dbf11d7daf526574bf2f7c9ef8cbca7ce56ae635 (patch) | |
tree | cbe7b803633b975a45b5ab206bfb9e60c9097c47 /template.sh | |
parent | ad575cbedbbc6d109241aebf225b7e07bdb17555 (diff) | |
download | www-dbf11d7daf526574bf2f7c9ef8cbca7ce56ae635.tar.gz www-dbf11d7daf526574bf2f7c9ef8cbca7ce56ae635.zip |
i18n: fix common includes
Diffstat (limited to 'template.sh')
-rwxr-xr-x | template.sh | 12 |
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 | ||
3 | for f in $(git ls-files *.j2 common/*.j2); do | 3 | for 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 | ||
9 | done | ||
10 | |||
11 | for 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 |
9 | done | 17 | done |