Changeset 1897


Ignore:
Timestamp:
2011-06-10 12:26:47 (12 years ago)
Author:
tekrjant
Message:

Kerrotaan lopussa mitkä ei käänny.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/23/build_games.py

    r1883 r1897  
    1414                rmtree(games_dir) 
    1515        os.mkdir(games_dir) 
     16         
     17        projects_that_did_not_build = [] 
    1618 
    1719        for root, dirs, files in os.walk('.'): 
     
    2426                if 'Windows Phone' in dirs: 
    2527                        dirs.remove('Windows Phone') 
    26 #               if 'Release' in dirs: 
    27 #                       copytree(join(root, 'Release'), games_dir) 
     28                if 'Release' in dirs: 
     29                        copytree(join(root, 'Release'), games_dir) 
    2830 
    2931                projects = glob(join(root, '*.csproj')) 
    3032                if projects: 
    31                         print 'projects: ' + str(projects) 
    3233                        # return_code = call('msbuild ' + projects[0], shell=True, stdout=PIPE) 
    33                         return_code = call('msbuild ' + projects[0]) 
     34                        return_code = call('msbuild ' + projects[0], shell=True) 
    3435                        if return_code != 0: 
    35                                 print 'DOES NOT BUILD: ' + projects[0] 
     36                                projects_that_did_not_build.append(projects[0]) 
     37 
     38        print '' 
     39        print 'Projects that did not build:' 
     40        for p in projects_that_did_not_build: 
     41                print p 
    3642 
    3743 
Note: See TracChangeset for help on using the changeset viewer.