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

Side by Side Diff: third_party/WebKit/Source/devtools/scripts/build/build_debug_applications.py

Issue 2441163002: DevTools: clean up scripts folder (Closed)
Patch Set: Fix sys.path for chromevox to load rjsmin Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # -*- coding: UTF-8 -*- 2 # -*- coding: UTF-8 -*-
3 # 3 #
4 # Copyright 2016 The Chromium Authors. All rights reserved. 4 # Copyright 2016 The Chromium Authors. All rights reserved.
5 # Use of this source code is governed by a BSD-style license that can be 5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file. 6 # found in the LICENSE file.
7 7
8 """ 8 """
9 Builds applications in debug mode: 9 Builds applications in debug mode:
10 - Copies the module directories into their destinations. 10 - Copies the module directories into their destinations.
11 - Copies app.html as-is. 11 - Copies app.html as-is.
12 """ 12 """
13 13
14 from os import path 14 from os import path
15 from os.path import join 15 from os.path import join
16 import modular_build
17 import os 16 import os
18 import shutil 17 import shutil
19 import sys 18 import sys
20 19
20 import modular_build
21
21 22
22 def main(argv): 23 def main(argv):
23 try: 24 try:
24 input_path_flag_index = argv.index('--input_path') 25 input_path_flag_index = argv.index('--input_path')
25 input_path = argv[input_path_flag_index + 1] 26 input_path = argv[input_path_flag_index + 1]
26 output_path_flag_index = argv.index('--output_path') 27 output_path_flag_index = argv.index('--output_path')
27 output_path = argv[output_path_flag_index + 1] 28 output_path = argv[output_path_flag_index + 1]
28 application_names = argv[1:input_path_flag_index] 29 application_names = argv[1:input_path_flag_index]
29 except: 30 except:
30 print('Usage: %s app_1 app_2 ... app_N --input_path <input_path> --outpu t_path <output_path>' % argv[0]) 31 print('Usage: %s app_1 app_2 ... app_N --input_path <input_path> --outpu t_path <output_path>' % argv[0])
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 else: 84 else:
84 symlink_or_copy_file(src, join(self.output_dir, filename), safe= True) 85 symlink_or_copy_file(src, join(self.output_dir, filename), safe= True)
85 86
86 def _build_html(self): 87 def _build_html(self):
87 html_name = self.app_file('html') 88 html_name = self.app_file('html')
88 symlink_or_copy_file(join(os.getcwd(), self.application_dir, html_name), join(self.output_dir, html_name), True) 89 symlink_or_copy_file(join(os.getcwd(), self.application_dir, html_name), join(self.output_dir, html_name), True)
89 90
90 91
91 if __name__ == '__main__': 92 if __name__ == '__main__':
92 sys.exit(main(sys.argv)) 93 sys.exit(main(sys.argv))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698