~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: INADA Naoki
  • Date: 2011-05-14 09:58:36 UTC
  • mfrom: (5830.2.22 i18n-msgextract)
  • mto: This revision was merged to the branch mainline in revision 5891.
  • Revision ID: songofacandy@gmail.com-20110514095836-38l651fp8bmb4bni
mergeĀ fromĀ i18n-msgextract

Show diffs side-by-side

added added

removed removed

Lines of Context:
425
425
.PHONY: update-pot po/bzr.pot
426
426
update-pot: po/bzr.pot
427
427
 
428
 
PYFILES:=$(shell find bzrlib -name '*.py' | grep -v '/tests/')
 
428
TRANSLATABLE_PYFILES:=$(shell find bzrlib -name '*.py' \
 
429
                | grep -v 'bzrlib/tests/' \
 
430
                | grep -v 'bzrlib/doc' \
 
431
                )
429
432
 
430
433
po/bzr.pot: $(PYFILES) $(DOCFILES)
431
 
        $(PYTHON) tools/bzrgettext.py bzrlib/*.py \
432
 
          bzrlib/plugins/*.py \
433
 
          > po/bzr.pot
434
 
        echo $(PYFILES) | xargs \
435
 
          xgettext --package-name "Bazaar" \
 
434
        $(PYTHON) ./bzr export-pot > po/bzr.pot
 
435
        echo $(TRANSLATABLE_PYFILES) | xargs \
 
436
          xgettext --package-name "bzr" \
436
437
          --msgid-bugs-address "<bazaar@canonical.com>" \
437
438
          --copyright-holder "Canonical" \
438
439
          --from-code ISO-8859-1 --join --sort-by-file --add-comments=i18n: \