OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3d2905f
)
Run manifest fix when updating project files.
author
Kimmo Varis
<kimmov@gmail.com>
Fri, 5 Jun 2009 12:48:47 +0000
(12:48 +0000)
committer
Kimmo Varis
<kimmov@gmail.com>
Fri, 5 Jun 2009 12:48:47 +0000
(12:48 +0000)
Tools/Scripts/UpgradeProjects.py
patch
|
blob
|
history
diff --git
a/Tools/Scripts/UpgradeProjects.py
b/Tools/Scripts/UpgradeProjects.py
index
b1cdc94
..
17a7bf4
100644
(file)
--- a/
Tools/Scripts/UpgradeProjects.py
+++ b/
Tools/Scripts/UpgradeProjects.py
@@
-31,6
+31,8
@@
import os
import subprocess
import sys
import subprocess
import sys
+import fix_manifest
+
# The version of the script
script_version = 0.2
# The version of the script
script_version = 0.2
@@
-40,6
+42,9
@@
solutions = [r'Externals\expat\expat.sln',
projects = [r'Externals\scew\win32\scew.vcproj',
r'ShellExtension\ShellExtension.vcproj']
projects = [r'Externals\scew\win32\scew.vcproj',
r'ShellExtension\ShellExtension.vcproj']
+
+# These projects need the manifest file fix
+manifest_projects = [r'Src\Merge.vcproj']
# TODO: read this from Tools.ini
vs_path = r'C:\Program Files\Microsoft Visual Studio 9.0'
# TODO: read this from Tools.ini
vs_path = r'C:\Program Files\Microsoft Visual Studio 9.0'
@@
-58,6
+63,11
@@
def upgrade_projects(root_path):
print 'Upgrading project file: ' + proj_file
subprocess.call([vs_binary, proj_file, '/Upgrade'], shell = True)
print 'Upgrading project file: ' + proj_file
subprocess.call([vs_binary, proj_file, '/Upgrade'], shell = True)
+def fix_proj_manifests(root_path):
+ for project in manifest_projects:
+ proj_file = os.path.join(root_path, project)
+ fix_manifest.process_project_file(proj_file)
+
def usage():
'''Print script usage information.'''
def usage():
'''Print script usage information.'''
@@
-94,6
+104,7
@@
def main(argv):
print 'Upgrading VS solution- and project-file in folder: ' + root_path
upgrade_projects(root_path)
print 'Upgrading VS solution- and project-file in folder: ' + root_path
upgrade_projects(root_path)
+ fix_proj_manifests(root_path)
# MAIN #
if __name__ == "__main__":
# MAIN #
if __name__ == "__main__":