OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import collections | 5 import collections |
6 import fnmatch | 6 import fnmatch |
7 import optparse | 7 import optparse |
8 import os | 8 import os |
9 import sys | 9 import sys |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 }, False), | 37 }, False), |
38 'SEARCH': (list, '', False), | 38 'SEARCH': (list, '', False), |
39 'POST': (str, '', False), | 39 'POST': (str, '', False), |
40 'PRE': (str, '', False), | 40 'PRE': (str, '', False), |
41 'DEST': (str, ['examples/getting_started', 'examples/api', | 41 'DEST': (str, ['examples/getting_started', 'examples/api', |
42 'examples/demo', 'examples/tutorial', | 42 'examples/demo', 'examples/tutorial', |
43 'src', 'testlibs', 'tests'], True), | 43 'src', 'testlibs', 'tests'], True), |
44 'NAME': (str, '', False), | 44 'NAME': (str, '', False), |
45 'DATA': (list, '', False), | 45 'DATA': (list, '', False), |
46 'TITLE': (str, '', False), | 46 'TITLE': (str, '', False), |
47 'GROUP': (str, '', False), | 47 'GROUP': (str, ['Getting Started', 'API', 'Demo', 'Tutorial'], False), |
48 'EXPERIMENTAL': (bool, [True, False], False) | 48 'EXPERIMENTAL': (bool, [True, False], False) |
49 } | 49 } |
50 | 50 |
51 def IgnoreMsgFunc(test): | 51 def IgnoreMsgFunc(test): |
52 pass | 52 pass |
53 | 53 |
54 | 54 |
55 def ErrorMsgFunc(text): | 55 def ErrorMsgFunc(text): |
56 sys.stderr.write(text + '\n') | 56 sys.stderr.write(text + '\n') |
57 | 57 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 filters['EXPERIMENTAL'] = False | 228 filters['EXPERIMENTAL'] = False |
229 | 229 |
230 tree = LoadProjectTree('.', filters=filters) | 230 tree = LoadProjectTree('.', filters=filters) |
231 PrintProjectTree(tree) | 231 PrintProjectTree(tree) |
232 | 232 |
233 return 0 | 233 return 0 |
234 | 234 |
235 | 235 |
236 if __name__ == '__main__': | 236 if __name__ == '__main__': |
237 sys.exit(main(sys.argv)) | 237 sys.exit(main(sys.argv)) |
OLD | NEW |