Skip to content

Commit

Permalink
Add rules to pull from transifex, update babel config after reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
BjarniRunar committed Jan 6, 2016
1 parent bcac2f2 commit 9c48629
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,6 +1,6 @@
*.pyc
*~
*.mo
*.po
*.debhelper
*.iml
*.ipr
Expand Down
12 changes: 8 additions & 4 deletions Makefile
Expand Up @@ -10,7 +10,7 @@ help:
@echo ""


all: submodules alltests docs web compilemessages
all: submodules alltests docs web compilemessages transifex

dev:
@echo export PYTHONPATH=`pwd`
Expand Down Expand Up @@ -97,6 +97,7 @@ pytests:
@echo

clean:
@rm -rf mailpile/locale/?? mailpile/locale/??_*
@rm -f `find . -name \\*.pyc` \
`find . -name \\*.mo` \
mailpile-tmp.py mailpile.py \
Expand All @@ -107,7 +108,7 @@ clean:
mailpile/tests/data/tmp/ testing/tmp/

mrproper: clean
@rm -rf dist/ bower_components/
@rm -rf dist/ bower_components/ mailpile/locale/mailpile.pot
git reset --hard && git clean -dfx

sdist: clean
Expand Down Expand Up @@ -168,14 +169,17 @@ genmessages:
compilemessages:
@scripts/compile-messages.sh

transifex:
tx pull -a --minimum-perc=50
tx pull -l is



# -----------------------------------------------------------------------------
# BUILD
# -----------------------------------------------------------------------------

tarball: mrproper js
#TODO: get transifex files
tarball: mrproper js genmessages transifex
git submodule update --init --recursive
git submodule foreach 'git reset --hard && git clean -dfx'
tar --exclude='./packages/debian' --exclude-vcs -czf /tmp/mailpile.tar.gz -C $(shell pwd) .
Expand Down
13 changes: 12 additions & 1 deletion babel.cfg
Expand Up @@ -2,7 +2,18 @@
[python: mailpile/**.py]
encoding = utf-8

[python: shared-data/contrib/**.py]
encoding = utf-8

# Extraction from Jinja2 template files
[jinja2: mailpile/www/default/html/**]
[jinja2: shared-data/default-theme/html/**]
encoding = utf-8
ignore_tags = style

[jinja2: shared-data/contrib/html/**.html]
encoding = utf-8
ignore_tags = style

[jinja2: shared-data/contrib/html/**.js]
encoding = utf-8
ignore_tags = style

0 comments on commit 9c48629

Please sign in to comment.