* apply patch #8020 by Thomas Knight (epat)

Just colours the last speech mark the same as the first when printing status messages about compiling files and so on. Old behaviour was to 
colour it the same as the file name itself.
This commit is contained in:
Nathan Letwory 2008-01-08 16:56:00 +00:00
parent d0a23e2eb4
commit 8d9a7941da

@ -222,22 +222,21 @@ def buildinfo(lenv, build_type):
def my_compile_print(target, source, env): def my_compile_print(target, source, env):
a = '%s' % (source[0]) a = '%s' % (source[0])
d, f = os.path.split(a) d, f = os.path.split(a)
return bc.OKBLUE+"Compiling"+bc.ENDC +" ==> '"+bc.OKGREEN+"%s" % (f) + "'"+bc.ENDC return bc.OKBLUE+"Compiling"+bc.ENDC +" ==> '"+bc.OKGREEN+"%s" % (f) + bc.ENDC + "'"
def my_moc_print(target, source, env): def my_moc_print(target, source, env):
a = '%s' % (source[0]) a = '%s' % (source[0])
d, f = os.path.split(a) d, f = os.path.split(a)
return bc.OKBLUE+"Creating MOC"+bc.ENDC+ " ==> '"+bc.OKGREEN+"%s" %(f) + "'"+bc.ENDC return bc.OKBLUE+"Creating MOC"+bc.ENDC+ " ==> '"+bc.OKGREEN+"%s" %(f) + bc.ENDC+ "'"
def my_linking_print(target, source, env): def my_linking_print(target, source, env):
t = '%s' % (target[0]) t = '%s' % (target[0])
d, f = os.path.split(t) d, f = os.path.split(t)
return bc.OKBLUE+"Linking library"+bc.ENDC +" ==> '"+bc.OKGREEN+"%s" % (f) + "'"+bc.ENDC return bc.OKBLUE+"Linking library"+bc.ENDC +" ==> '"+bc.OKGREEN+"%s" % (f) + bc.ENDC+ "'"
def my_program_print(target, source, env): def my_program_print(target, source, env):
t = '%s' % (target[0]) t = '%s' % (target[0])
d, f = os.path.split(t) d, f = os.path.split(t)
return bc.OKBLUE+"Linking program"+bc.ENDC +" ==> '"+bc.OKGREEN+"%s" % (f) + "'"+bc.ENDC return bc.OKBLUE+"Linking program"+bc.ENDC +" ==> '"+bc.OKGREEN+"%s" % (f) + bc.ENDC + "'"
def msvc_hack(env): def msvc_hack(env):
static_lib = SCons.Tool.createStaticLibBuilder(env) static_lib = SCons.Tool.createStaticLibBuilder(env)