Changeset 2077 for 2011/24


Ignore:
Timestamp:
2011-06-16 23:39:04 (8 years ago)
Author:
tekrjant
Message:

Less verbose output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/24/build_games.py

    r2076 r2077  
    11import sys 
    22import os 
    3 from os.path import join, exists, abspath 
     3from os.path import * 
    44from shutil import * 
    55from glob import * 
     
    1616                projects = glob(join(root, '*.csproj')) 
    1717                if projects: 
    18                         build_cmd = 'msbuild /p:Configuration=Release /p:"ReferencePath={0}" /t:Build "{1}"'.format(lib_dir_x86, projects[0]) 
     18                        build_cmd = 'msbuild /nologo /verbosity:quiet /p:Configuration=Release /p:"ReferencePath={0}" /t:Build "{1}"'.format(lib_dir_x86, projects[0]) 
    1919                        return_code = call(build_cmd, shell=True) 
    20                         if return_code != 0: 
     20                        if return_code == 0: 
     21                                print basename(projects[0]) 
     22                        else: 
    2123                                projects_that_did_not_build.append(projects[0]) 
    2224 
    2325        print '' 
    24         print 'Projects that did not build:' 
     26        print 'Projects that did not build ({0}):'.format(len(projects_that_did_not_build)) 
    2527        for p in projects_that_did_not_build: 
    2628                print p 
Note: See TracChangeset for help on using the changeset viewer.