Chromium Code Reviews| Index: editor/tools/compile_analyzer.py |
| =================================================================== |
| --- editor/tools/compile_analyzer.py (revision 19782) |
| +++ editor/tools/compile_analyzer.py (working copy) |
| @@ -69,6 +69,16 @@ |
| # Add new line |
| print >> output |
| +def CopyBinaries(options): |
| + bin_directory = options.output_dir + "/bin" |
| + os.makedirs(bin_directory) |
| + unix_bin = os.path.join(os.path.dirname(__file__), "analyzer") |
| + windows_bin = os.path.join(os.path.dirname(__file__), "analyzer.bat") |
| + print unix_bin |
|
kustermann
2013/03/12 08:45:17
Left over "print"s?
|
| + print os.path.dirname(__file__) |
| + shutil.copy(unix_bin, bin_directory) |
| + shutil.copy(windows_bin, bin_directory) |
| + |
| def main(): |
| (options, args) = GetOptions() |
| # Clean out everything whenever we do a build, guarantees that we don't have |
| @@ -80,7 +90,7 @@ |
| CreateClassPathFile(options) |
| CompileAnalyzer(options, args) |
| CreateJarFile(options) |
| + CopyBinaries(options) |
| - |
| if __name__=='__main__': |
| main() |