Skip to content

Commit

Permalink
Buildscript: Update project/solution files before building.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimmov committed Sep 13, 2010
1 parent 172e7d3 commit 35894d3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Tools/Scripts/create_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
import shutil
import SetVersions
import ToolSettings
import UpgradeProjects

# global settings class instance
prog = ToolSettings.ToolSettings()
Expand Down Expand Up @@ -494,6 +495,13 @@ def check_x64shellext():
else:
return True

def update_project_files(root_path):
'''Upgrade project/solution files for the VS version used.'''

print 'Update VS project/solution files for used VS version...'
UpgradeProjects.tools.read_ini('Tools.ini')
UpgradeProjects.upgrade_projects(root_path)

def main(argv):
global prog
ver_file = ''
Expand All @@ -511,7 +519,7 @@ def main(argv):

if options.version:
prog_version = options.version
print 'Start building Frhed release version ' + prog_version
print 'Start building WinMerge release version ' + prog_version

if options.cleanup:
if cleanup_build() == True:
Expand Down Expand Up @@ -584,6 +592,8 @@ def main(argv):
if setup_translations() == False:
sys.exit(1)

update_project_files(root_path)

if build_targets() == False:
sys.exit(1)
build_manual()
Expand Down

0 comments on commit 35894d3

Please sign in to comment.