Update for recent TQ changes.

pull/1/head
Darrell Anderson 13 years ago
parent f26ee6ee0e
commit 5f2719b1ee

@ -125,18 +125,18 @@ def detect_kde(env):
env['QT_UIC'] = uic env['QT_UIC'] = uic
print "Checking for moc : ", print "Checking for moc : ",
moc = qtdir + "/bin/moc" moc = qtdir + "/bin/tqmoc"
if os.path.isfile(moc): if os.path.isfile(moc):
print GREEN + "moc was found as " + moc + NORMAL print GREEN + "moc was found as " + moc + NORMAL
else: else:
moc = os.popen("which moc 2>/dev/null").read().strip() moc = os.popen("which moc 2>/dev/null").read().strip()
if len(moc): if len(moc):
print YELLOW + "moc was found as " + moc + NORMAL print YELLOW + "moc was found as " + moc + NORMAL
elif os.path.isfile("/usr/share/tqt3/bin/moc"): elif os.path.isfile("/usr/share/tqt3/bin/tqmoc"):
moc = "/usr/share/tqt3/bin/moc" moc = "/usr/share/tqt3/bin/tqmoc"
print YELLOW + "moc was found as " + moc + NORMAL print YELLOW + "moc was found as " + moc + NORMAL
elif os.path.isfile("/usr/share/qt3/bin/moc"): elif os.path.isfile("/usr/share/qt3/bin/tqmoc"):
moc = "/usr/share/qt3/bin/moc" moc = "/usr/share/qt3/bin/tqmoc"
print YELLOW + "moc was found as " + moc + NORMAL print YELLOW + "moc was found as " + moc + NORMAL
else: else:
print RED + "moc was not found - set QTDIR or put it in your PATH ?" + NORMAL print RED + "moc was not found - set QTDIR or put it in your PATH ?" + NORMAL

Loading…
Cancel
Save