##// END OF EJS Templates
setup: do not use -c with msgfmt on Solaris (issue1489)
Martin Geisler -
r7720:b6c2cb40 default
parent child Browse files
Show More
@@ -139,9 +139,12 b' class build_mo(build):'
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 cmd = ['msgfmt', '-v', '-o', mofile, pofile]
143 if sys.platform != 'sunos5':
144 # msgfmt on Solaris does not know about -c
145 cmd.append('-c')
142 self.mkpath(modir)
146 self.mkpath(modir)
143 self.make_file([pofile], mofile, spawn,
147 self.make_file([pofile], mofile, spawn, (cmd,))
144 (['msgfmt', '-v', '-c', '-o', mofile, pofile],))
145 self.distribution.data_files.append((join('mercurial', modir),
148 self.distribution.data_files.append((join('mercurial', modir),
146 [mofile]))
149 [mofile]))
147
150
General Comments 0
You need to be logged in to leave comments. Login now