----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://codereview.secondlife.com/r/331/#review732 -----------------------------------------------------------
It should be noted that this fix depends on your OPEN-77 implementation (being reviewed at http://codereview.secondlife.com/r/327/ ) and should not be pulled without that. autobuild/autobuild_tool_configure.py <http://codereview.secondlife.com/r/331/#comment695> Don't forget that file UNIX filesystems are case sensitive. Even worse, the fact that GNU make looks first for a file named 'makefile' then for one named 'Makefile' makes it common that projects ship with a 'makefile' file, and the user would then create a 'Makefile' file to override that, if wanted. That might inspire Mac/Linux users to use Autobuild.xml or some other capitalization variation for their own autobuild config file. Luckily, there's a http://docs.python.org/library/os.path.html#os.path.normcase , which does just what we want here. autobuild/autobuild_tool_configure.py <http://codereview.secondlife.com/r/331/#comment694> somelist[0:0] = [something] might be more readable rewritten as somelist.insert(0, something) (Though maybe that's just a matter of different taste. I dunno whether somelist[0:0] is a common idiom in python ... but it had me think twice before I realized it was simply used for prepending) Because args.config_file is appended at the end, you might want to use the string concatenation operator (+) rather than substitution: 'foo%s' % bar is the same as 'foo' + bar So this line could become args.additional_options.insert(0, '-DAUTOBUILD_EXTRA_ARGS:STRING=--config-file=' + args.config_file) (Maybe this should be broken into two lines.) - Boroondas On June 7, 2011, 3:03 p.m., Ima Mechanique wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://codereview.secondlife.com/r/331/ > ----------------------------------------------------------- > > (Updated June 7, 2011, 3:03 p.m.) > > > Review request for Viewer. > > > Summary > ------- > > The fix in OPEN-77 allows configure to run correctly, but is cumbersome and > not exactly pretty on the command line ;-) > This fix allows autobuild itself, to automatically add the --config-file > option when it determines the default (autobuild.xml) is not being used. > > > This addresses bugs OPEN-76 and OPEN-78. > http://jira.secondlife.com/browse/OPEN-76 > http://jira.secondlife.com/browse/OPEN-78 > > > Diffs > ----- > > autobuild/autobuild_tool_configure.py 2a560b1d8f95 > > Diff: http://codereview.secondlife.com/r/331/diff > > > Testing > ------- > > Configure and built viewer-development with custom configuration and no > default file present. > > > Thanks, > > Ima > >
_______________________________________________ Policies and (un)subscribe information available here: http://wiki.secondlife.com/wiki/OpenSource-Dev Please read the policies before posting to keep unmoderated posting privileges