aboutsummaryrefslogtreecommitdiff
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 @@
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