summaryrefslogtreecommitdiff
path: root/template.sh
diff options
context:
space:
mode:
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