~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: INADA Naoki
  • Date: 2011-05-05 09:15:34 UTC
  • mto: (5830.3.3 i18n-msgfmt)
  • mto: This revision was merged to the branch mainline in revision 5873.
  • Revision ID: songofacandy@gmail.com-20110505091534-7sv835xpofwrmpt4
Add update-pot command to Makefile and tools/bzrgettext script that
extracts help text from bzr commands.

Show diffs side-by-side

added added

removed removed

Lines of Context:
420
420
        $(PYTHON) tools/win32/ostools.py remove dist
421
421
 
422
422
 
 
423
# i18n targets
 
424
 
 
425
.PHONY: update-pot po/bzr.pot
 
426
update-pot: po/bzr.pot
 
427
 
 
428
PYFILES:=$(shell find bzrlib -name '*.py')
 
429
 
 
430
po/bzr.pot: $(PYFILES) $(DOCFILES)
 
431
        $(PYTHON) tools/bzrgettext bzrlib/*.py \
 
432
          bzrlib/plugins/*.py \
 
433
          > po/bzr.pot
 
434
        echo $(PYFILES) | xargs \
 
435
          xgettext --package-name "Bazaar" \
 
436
          --msgid-bugs-address "<bazaar@canonical.com>" \
 
437
          --copyright-holder "Canonical" \
 
438
          --from-code ISO-8859-1 --join --sort-by-file --add-comments=i18n: \
 
439
          -d bzr -p po -o bzr.pot
 
440
 
 
441
 
423
442
### Packaging Targets ###
424
443
 
425
444
.PHONY: dist check-dist-tarball