~bzr/ubuntu/jaunty/bzr-explorer/bzr-ppa

« back to all changes in this revision

Viewing changes to extras/build_pot.py

  • Committer: Andrew Starr-Bochicchio
  • Date: 2010-02-09 17:07:26 UTC
  • mfrom: (311.1.113 trunk)
  • Revision ID: a.starr.b@gmail.com-20100209170726-sqpqfbfpufcvr9s0
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
        if not os.path.isdir(self.build_dir):
91
91
            log.info('Make directory: ' + self.build_dir)
92
92
            os.makedirs(self.build_dir)
 
93
        py_sources = [p.replace('\\','/')
 
94
                      for p in (['__init__.py']
 
95
                                + glob.glob('lib/*.py')
 
96
                                + glob.glob('lib/builders/*.py')
 
97
                                + glob.glob('lib/extensions/*.py')
 
98
                                + glob.glob('widgets/*.py')
 
99
                                )]
93
100
        self.spawn(['xgettext',
94
101
                    '--keyword=N_',
95
102
                    '-p', self.build_dir,
96
103
                    '-o', self.output,
97
 
                    '__init__.py',
98
 
                    ] + glob.glob('lib/*.py') + glob.glob('widgets/*.py'))
 
104
                    ] + py_sources)
99
105
        self._force_LF(fullname)
100
106
        # regenerate english PO
101
107
        if self.english: