setup.py
changeset 7712 9f9bbd33f71e
parent 7649 a489e3a94443
child 7720 b6c2cb40e664
equal deleted inserted replaced
7711:a0de99db7cdc 7712:9f9bbd33f71e
   139             pofile = join(podir, po)
   139             pofile = join(podir, po)
   140             modir = join('locale', po[:-3], 'LC_MESSAGES')
   140             modir = join('locale', po[:-3], 'LC_MESSAGES')
   141             mofile = join(modir, 'hg.mo')
   141             mofile = join(modir, 'hg.mo')
   142             self.mkpath(modir)
   142             self.mkpath(modir)
   143             self.make_file([pofile], mofile, spawn,
   143             self.make_file([pofile], mofile, spawn,
   144                            (['msgfmt', '-o', mofile, pofile],))
   144                            (['msgfmt', '-v', '-c', '-o', mofile, pofile],))
   145             self.distribution.data_files.append((join('mercurial', modir),
   145             self.distribution.data_files.append((join('mercurial', modir),
   146                                                  [mofile]))
   146                                                  [mofile]))
   147 
   147 
   148 build.sub_commands.append(('build_mo', None))
   148 build.sub_commands.append(('build_mo', None))
   149 
   149