Change qt 4 src location for my new dev machine

This commit is contained in:
Kovid Goyal 2014-05-02 09:38:57 +05:30
parent 6e0c7ee97b
commit 9d610f0d23

View File

@ -13,10 +13,11 @@ from functools import partial
from setup import Command, __appname__, __version__, require_git_master from setup import Command, __appname__, __version__, require_git_master
def qt_sources(): def qt_sources():
qtdir = glob.glob('/usr/src/qt-*')[-1] # QT5XX: Change this
qtdir = '/usr/src/qt4'
j = partial(os.path.join, qtdir) j = partial(os.path.join, qtdir)
return list(map(j, [ return list(map(j, [
'src/gui/widgets/qdialogbuttonbox.cpp', 'gui/widgets/qdialogbuttonbox.cpp',
])) ]))
class POT(Command): # {{{ class POT(Command): # {{{
@ -152,7 +153,8 @@ class Translations(POT): # {{{
def run(self, opts): def run(self, opts):
l = {} l = {}
execfile(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lc_data.py'), l, l) exec(compile(open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lc_data.py'))
.read(), os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lc_data.py'), 'exec'), l, l)
lcdata = {k:{k1:v1 for k1, v1 in v} for k, v in l['data']} lcdata = {k:{k1:v1 for k1, v1 in v} for k, v in l['data']}
self.iso639_errors = [] self.iso639_errors = []
for f in self.po_files(): for f in self.po_files():
@ -308,14 +310,14 @@ class GetTranslations(Translations): # {{{
os.mkdir(errors) os.mkdir(errors)
pofilter = ('pofilter', '-i', self.LP_PATH, '-o', errors, pofilter = ('pofilter', '-i', self.LP_PATH, '-o', errors,
'-t', 'accelerators', '-t', 'escapes', '-t', 'variables', '-t', 'accelerators', '-t', 'escapes', '-t', 'variables',
#'-t', 'xmltags', # '-t', 'xmltags',
#'-t', 'brackets', # '-t', 'brackets',
#'-t', 'emails', # '-t', 'emails',
#'-t', 'doublequoting', # '-t', 'doublequoting',
#'-t', 'filepaths', # '-t', 'filepaths',
#'-t', 'numbers', # '-t', 'numbers',
'-t', 'options', '-t', 'options',
#'-t', 'urls', # '-t', 'urls',
'-t', 'printf') '-t', 'printf')
subprocess.check_call(pofilter) subprocess.check_call(pofilter)
errfiles = glob.glob(errors+os.sep+'*.po') errfiles = glob.glob(errors+os.sep+'*.po')