fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simple docker config for utility use.
[librarian.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
e206641
..
021ab87
100644
(file)
--- 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
locale:
find src/librarian -name '*.py' |xargs xgettext --from-code utf-8 -o - | sed '/^"POT-Creation-Date:/d' > messages.pot
- for lang in pl
; do msgmerge -U src/librarian/locale/$${lang}/LC_MESSAGES/messages.po messages.pot
; done
+ 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
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 .