summaryrefslogtreecommitdiff
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.tar.bz2
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 @@
#!/bin/sh
-for f in $(git ls-files *.j2 common/*.j2); do
+for f in $(git ls-files *.j2); do
for ld in locale/*/; do
l=$(basename $ld)
echo "$f: $l"
- python template.py $f $l $(basename $f .html.j2).$l.html
+ python template.py $f $l $(dirname $f)/$(basename $f .html.j2).$l.html
+ done
+done
+
+for f in $(git ls-files common/*.j2); do
+ for ld in locale/*/; do
+ l=$(basename $ld)
+ echo "$f: $l"
+ python template.py $f $l $(dirname $f)/$(basename $f .inc.j2).$l.inc
done
done