beremiz

move README content to Makefile

2017-10-03, Andrey Skvortsov
05c1f7aa8991
Parents 9fd29e8b1393
Children 4bec5768afbb
move README content to Makefile

It's not necessary to copy commands from README anymore. Just use
'make source_list', 'make template' or 'make locales'.
  • +19 -0
    i18n/Makefile
  • +0 -14
    i18n/README
  • --- /dev/null Thu Jan 01 00:00:00 1970 +0000
    +++ b/i18n/Makefile Tue Oct 03 16:07:02 2017 +0300
    @@ -0,0 +1,19 @@
    +all:
    + @echo "Please specify target 'source_list', 'template' or 'locales'"
    +
    +template:
    + @echo To generate translation template message.pot file:
    + python mki18n.py -p --domain=Beremiz
    +
    +locales:
    + @echo "Generate .mo files for all languages:"
    + python mki18n.py -m --moTarget=../locale --domain=Beremiz
    +
    +
    +source_list:
    + echo @To "Generate list with source files: app.fil:"
    + find .. -name "*.py" -exec grep -q '_(' {} ';' -print -o -name "*XSD*" -print -o -name "*.csv" -print | grep -v '/build/' | grep -v '/pyjs/' > app.fil
    + echo "../plcopen/Additional_Function_Blocks.xml" >> app.fil
    + echo "../plcopen/Standard_Function_Blocks.xml" >> app.fil
    +
    +.PHONY: all, app.fil, locales, messages.pot
    --- a/i18n/README Mon Oct 02 13:19:06 2017 +0300
    +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
    @@ -1,14 +0,0 @@
    -To generate message.pot file:
    -
    - python mki18n.py -p --domain=Beremiz
    -
    -To generate .mo files for all languages:
    -
    - python mki18n.py -m --moTarget=../locale --domain=Beremiz
    -
    -
    -To generate app.fil:
    -
    - find .. -name "*.py" -exec grep -q '_(' {} ';' -print -o -name "*XSD*" -print -o -name "*.csv" -print | grep -v '/build/' | grep -v '/pyjs/' > app.fil
    - echo "../plcopen/Additional_Function_Blocks.xml" >> app.fil
    - echo "../plcopen/Standard_Function_Blocks.xml" >> app.fil
    \ No newline at end of file