Mercurial > hg
changeset 7720:b6c2cb40e664
setup: do not use -c with msgfmt on Solaris (issue1489)
author | Martin Geisler <mg@daimi.au.dk> |
---|---|
date | Wed, 28 Jan 2009 10:32:15 +0100 |
parents | 5d25b2f59ade |
children | a1138f437640 |
files | setup.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/setup.py Tue Jan 27 18:17:59 2009 +0100 +++ b/setup.py Wed Jan 28 10:32:15 2009 +0100 @@ -139,9 +139,12 @@ pofile = join(podir, po) modir = join('locale', po[:-3], 'LC_MESSAGES') mofile = join(modir, 'hg.mo') + cmd = ['msgfmt', '-v', '-o', mofile, pofile] + if sys.platform != 'sunos5': + # msgfmt on Solaris does not know about -c + cmd.append('-c') self.mkpath(modir) - self.make_file([pofile], mofile, spawn, - (['msgfmt', '-v', '-c', '-o', mofile, pofile],)) + self.make_file([pofile], mofile, spawn, (cmd,)) self.distribution.data_files.append((join('mercurial', modir), [mofile]))