blob: f0f7e62c7569fbbe703534d70c5e5f725d40a037 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
pull: venv
echo "Pulling new translations from transiflex..."
. ../../build/venv/bin/activate; tx pull -af
push: venv
echo "Pushing new documentation to transiflex..."
. ../../build/venv/bin/activate; \
sphinx-build -b gettext -E .. _pot && \
sphinx-intl update-txconfig-resources -p _pot -d . --transifex-project-name bottle
# Reset all *.pot files that differ only in one line (the creation date).
for pot in `find _pot -name '*.pot'`; do\
git diff --numstat -- $$pot | sed 's/\t/ /g' | grep -q '1 1 docs'\
&& echo "Not changed: $$pot" && git checkout -- $$pot || true;\
done;
. ../../build/venv/bin/activate; tx push -s
venv: ../../build/venv/bin/activate
../../build/venv/bin/activate: requirements.txt
test -d ../../build/venv || python2 -mvirtualenv ../../build/venv
../../build/venv/bin/pip install -Ur requirements.txt
touch ../../build/venv/bin/activate
|