diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-02-14 21:07:41 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-02-14 21:09:33 +0100 |
commit | 197f0a626dc333a4956a541ce556abb87bda8b46 (patch) | |
tree | 8f0750968d865f4a52894a3aff05babf905ca3dc /template.sh | |
parent | 456a61874e68847d1a7099831fa6247e6cbdc276 (diff) | |
download | www-197f0a626dc333a4956a541ce556abb87bda8b46.tar.gz www-197f0a626dc333a4956a541ce556abb87bda8b46.zip |
make template compilation a LOT faster
By not doing template parsing and starting the python interpreter every
time, templating only takes about a second on my machine now.
Diffstat (limited to 'template.sh')
-rwxr-xr-x | template.sh | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/template.sh b/template.sh deleted file mode 100755 index 040f3a00..00000000 --- a/template.sh +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | # This file is in the public domain. | ||
3 | # | ||
4 | # Wrapper around 'template.py', running it on all | ||
5 | # of our jinja2 input files for all languages for which | ||
6 | # we have translations. | ||
7 | # | ||
8 | # Note that the gettext files need to be prepared first. This script | ||
9 | # is thus to be invoked via the Makefile. | ||
10 | for f in $(git ls-files *.j2); do | ||
11 | for ld in locale/*/; do | ||
12 | l=$(basename $ld) | ||
13 | mkdir -p $(basename $l) | ||
14 | echo "$f: $l" | ||
15 | python template.py $f $l | ||
16 | done | ||
17 | done | ||