]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/distrib/makemo.py
build tweaks, also drop most Python 2.3 builds
[wxWidgets.git] / wxPython / distrib / makemo.py
... / ...
CommitLineData
1import sys, os, glob
2from distutils.dep_util import newer
3from distutils.spawn import spawn
4
5poFiles = glob.glob("*.po")
6
7for po in poFiles:
8 mo = os.path.splitext(po)[0] + '.mo'
9 if mo != 'wxstd.mo':
10 if newer(po, mo):
11 cmd = 'msgfmt --verbose -o %s %s' % (mo, po)
12 print cmd
13 spawn(cmd.split())
14 print
15 else:
16 print "%s is up to date" % mo