X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/aca6edb838d8f31fc1c72eb06891845eb9e28828..5152065ea5fa0b99555ac3e29b8a13e23ed5083c:/Makefile diff --git a/Makefile b/Makefile index 38a3c9f..021ab87 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,13 @@ +.PHONY: build + + locale: find src/librarian -name '*.py' |xargs xgettext --from-code utf-8 -o - | sed '/^"POT-Creation-Date:/d' > messages.pot 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 rm messages.pot - + + +build: + python setup.py sdist + mv dist/`python setup.py --fullname`.tar.gz dist/librarian.tar.gz + docker build -t wl/librarian:latest .