Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: editor/tools/compile_analyzer.py

Issue 12335133: Create "binaries" for calling the new analyzer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« editor/tools/analyzer ('K') | « editor/tools/analyzer.bat ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/compile_analyzer.py
===================================================================
--- editor/tools/compile_analyzer.py (revision 19118)
+++ editor/tools/compile_analyzer.py (working copy)
@@ -69,6 +69,14 @@
# Add new line
print >> output
+def CopyBinaries(options):
+ bin_directory = options.output_dir + "/bin"
+ os.makedirs(bin_directory)
+ unix_bin = os.path.dirname(__file__) + "/analyzer"
kustermann 2013/03/11 10:15:33 You could use os.path.join.
ahe 2013/03/12 08:47:35 *should*, I think :-)
+ windows_bin = os.path.dirname(__file__) + "/analyzer.bat"
+ 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 +88,7 @@
CreateClassPathFile(options)
CompileAnalyzer(options, args)
CreateJarFile(options)
+ CopyBinaries(options)
-
if __name__=='__main__':
main()
« editor/tools/analyzer ('K') | « editor/tools/analyzer.bat ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698