Simple docker config for utility use.
[librarian.git] / Makefile
1 .PHONY: build
2
3
4 locale:
5         find src/librarian -name '*.py' |xargs xgettext --from-code utf-8 -o - | sed '/^"POT-Creation-Date:/d' > messages.pot
6         for lang in pl lt; do mkdir -p src/librarian/locale/$${lang}/LC_MESSAGES/; [ -e src/librarian/locale/$${lang}/LC_MESSAGES/messages.po ] && msgmerge -U src/librarian/locale/$${lang}/LC_MESSAGES/messages.po messages.pot || cp messages.pot src/librarian/locale/$${lang}/LC_MESSAGES/messages.po ; done
7         rm messages.pot
8
9
10 build:
11         python setup.py sdist
12         mv dist/`python setup.py --fullname`.tar.gz dist/librarian.tar.gz
13         docker build -t wl/librarian:latest .