-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
32 lines (24 loc) · 870 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
LINGUAS="ru"
server: clean translate
bundle exec middleman server --verbose
deploy: clean translate
rm -rf build/*
- bundle exec middleman build
bundle exec middleman deploy
clean: clean-po
rm -rf build/* source/blog/2* source/localizable/docs source/localizable/download
clean-po:
find {blog,content}/po | grep ".po~" | xargs rm -f
translate:
po4a-bulk-translate content/source asciidoc adoc content/po source/localizable $(LINGUAS)
po4a-bulk-translate blog/source asciidoc adoc blog/po source $(LINGUAS)
./copy_en.sh
gettextize:
rm -rf content/pot/*
rm -rf blog/pot/*
po4a-bulk-gettextize content/source asciidoc adoc content/pot
po4a-bulk-gettextize blog/source asciidoc adoc blog/pot
updatepo:
po4a-bulk-updatepo content/source asciidoc adoc content/po $(LINGUAS)
po4a-bulk-updatepo blog/source asciidoc adoc blog/po $(LINGUAS)
make clean-po