OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # Example run from the server2/ directory: | 6 # Example run from the server2/ directory: |
7 # $ converter.py ../static/ ../../api templates/articles/ templates/intros/ | 7 # $ converter.py ../static/ ../../api templates/articles/ templates/intros/ |
8 # templates/public/ static/images/ -r | 8 # templates/public/ static/images/ -r |
9 | 9 |
10 import json | 10 import json |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 EXTENSIONS_ONLY = [ | 48 EXTENSIONS_ONLY = [ |
49 'browserAction', | 49 'browserAction', |
50 'extension', | 50 'extension', |
51 'input_ime', | 51 'input_ime', |
52 'fontSettings', | 52 'fontSettings', |
53 'fileBrowserHandler', | 53 'fileBrowserHandler', |
54 'omnibox', | 54 'omnibox', |
55 'pageAction', | 55 'pageAction', |
56 'scriptBadge', | 56 'scriptBadge', |
57 'windows', | 57 'windows', |
| 58 'devtools_inspectedWindow', |
| 59 'devtools_network', |
| 60 'devtools_panels', |
58 'experimental_devtools_audits', | 61 'experimental_devtools_audits', |
59 'experimental_devtools_console', | 62 'experimental_devtools_console', |
60 'experimental_discovery', | 63 'experimental_discovery', |
61 'experimental_infobars', | 64 'experimental_infobars', |
62 'experimental_offscreenTabs', | 65 'experimental_offscreenTabs', |
63 'experimental_processes', | 66 'experimental_processes', |
64 'experimental_speechInput' | 67 'experimental_speechInput' |
65 ] | 68 ] |
66 | 69 |
67 def _ReadFile(filename): | 70 def _ReadFile(filename): |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 if (not opts.file and len(args) != 6) or (opts.file and len(args) != 7): | 354 if (not opts.file and len(args) != 6) or (opts.file and len(args) != 7): |
352 parser.error('incorrect number of arguments.') | 355 parser.error('incorrect number of arguments.') |
353 | 356 |
354 if opts.file: | 357 if opts.file: |
355 _MoveSingleFile(*args, replace=opts.replace, svn=opts.svn) | 358 _MoveSingleFile(*args, replace=opts.replace, svn=opts.svn) |
356 else: | 359 else: |
357 _MoveAllFiles(*args, | 360 _MoveAllFiles(*args, |
358 replace=opts.replace, | 361 replace=opts.replace, |
359 exclude_dir=opts.exclude, | 362 exclude_dir=opts.exclude, |
360 svn=opts.svn) | 363 svn=opts.svn) |
OLD | NEW |