Title: [126429] trunk/Source/WebCore
Revision
126429
Author
[email protected]
Date
2012-08-23 08:34:14 -0700 (Thu, 23 Aug 2012)

Log Message

Web Inspector: use temporary directory for modules generated by compile-front-end.py
https://bugs.webkit.org/show_bug.cgi?id=94804

Reviewed by Pavel Feldman.

Create temporary directory for generated js modules and remove the directory
after the compilation.

* inspector/compile-front-end.py:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (126428 => 126429)


--- trunk/Source/WebCore/ChangeLog	2012-08-23 15:11:47 UTC (rev 126428)
+++ trunk/Source/WebCore/ChangeLog	2012-08-23 15:34:14 UTC (rev 126429)
@@ -1,3 +1,15 @@
+2012-08-23  Yury Semikhatsky  <[email protected]>
+
+        Web Inspector: use temporary directory for modules generated by compile-front-end.py
+        https://bugs.webkit.org/show_bug.cgi?id=94804
+
+        Reviewed by Pavel Feldman.
+
+        Create temporary directory for generated js modules and remove the directory
+        after the compilation.
+
+        * inspector/compile-front-end.py:
+
 2012-08-23  Simon Hausmann  <[email protected]>
 
         [Qt] Fix make install on Windows

Modified: trunk/Source/WebCore/inspector/compile-front-end.py (126428 => 126429)


--- trunk/Source/WebCore/inspector/compile-front-end.py	2012-08-23 15:11:47 UTC (rev 126428)
+++ trunk/Source/WebCore/inspector/compile-front-end.py	2012-08-23 15:34:14 UTC (rev 126429)
@@ -30,7 +30,9 @@
 import os
 import os.path
 import generate_protocol_externs
+import shutil
 import sys
+import tempfile
 
 inspector_path = "Source/WebCore/inspector"
 inspector_frontend_path = inspector_path + "/front-end"
@@ -365,7 +367,8 @@
         command += " \\\n        --js " + inspector_frontend_path + "/" + script
     return command
 
-compiler_command = "java -jar ~/closure/compiler.jar --summary_detail_level 3 --compilation_level SIMPLE_OPTIMIZATIONS --warning_level VERBOSE --language_in ECMASCRIPT5 --accept_const_keyword \\\n"
+modules_dir = tempfile.mkdtemp()
+compiler_command = "java -jar ~/closure/compiler.jar --summary_detail_level 3 --compilation_level SIMPLE_OPTIMIZATIONS --warning_level VERBOSE --language_in ECMASCRIPT5 --accept_const_keyword --module_output_path_prefix %s/ \\\n" % modules_dir
 
 process_recursively = len(sys.argv) == 2
 if process_recursively:
@@ -407,3 +410,5 @@
     command += "\n"
     os.system(command)
     os.system("rm " + inspector_path + "/" + "InjectedScriptWebGLModuleSourceTmp.js")
+
+shutil.rmtree(modules_dir)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to