allow '=' inside a value on command line.
return error code from calling makefiles in lower 8 bits so any Makefile calling build.py will correctly interpret fatal build errors. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6189 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -189,7 +189,7 @@ def main(args):
|
|||||||
print "Running:", cmd
|
print "Running:", cmd
|
||||||
err = os.system(cmd)
|
err = os.system(cmd)
|
||||||
|
|
||||||
return err
|
return err/256
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
@@ -463,7 +463,7 @@ class BuildConfig:
|
|||||||
for st in args:
|
for st in args:
|
||||||
pair = string.split(st, '=')
|
pair = string.split(st, '=')
|
||||||
name = pair[0]
|
name = pair[0]
|
||||||
value = pair[1]
|
value = string.join(pair[1:], '=')
|
||||||
self.__dict__[name] = value
|
self.__dict__[name] = value
|
||||||
except:
|
except:
|
||||||
print "Error parsing command-line: %s" % st
|
print "Error parsing command-line: %s" % st
|
||||||
|
Reference in New Issue
Block a user