Changeset 2324 for 2011/26


Ignore:
Timestamp:
2011-06-29 15:36:16 (12 years ago)
Author:
tekrjant
Message:

the build script works on python 2.5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/26/build_games.py

    r2298 r2324  
     1from __future__ import with_statement 
    12import sys 
    23import os 
     
    8182 
    8283def build(project_file_path): 
    83         build_cmd = 'msbuild /nologo /verbosity:quiet /p:XnaProfile=Reach /p:Configuration=Release /p:"ReferencePath={0}" /t:Build "{1}"'.format(lib_dir_x86, project_file_path) 
     84        build_cmd = 'msbuild /nologo /verbosity:quiet /p:XnaProfile=Reach /p:Configuration=Release /p:"ReferencePath=%s" /t:Build "%s"' % (lib_dir_x86, project_file_path) 
    8485        return call(build_cmd, shell=True) == 0 
    8586 
     
    128129        except KeyboardInterrupt: 
    129130                print "BUILD CANCELLED" 
    130         except Exception as e: 
     131        except Exception, e: 
    131132                print 
    132133                print "NOT SUCCESSFUL:", e 
     
    134135 
    135136        print 
    136         print 'Projects that did not build ({0}):'.format(len(projects_that_did_not_build)) 
     137        print 'Projects that did not build (%d):' % len(projects_that_did_not_build) 
    137138        for p in projects_that_did_not_build: 
    138139                print p 
Note: See TracChangeset for help on using the changeset viewer.