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 """Makes sure files have the right permissions. | 6 """Makes sure files have the right permissions. |
7 | 7 |
8 Some developers have broken SCM configurations that flip the svn:executable | 8 Some developers have broken SCM configurations that flip the svn:executable |
9 permission on for no good reason. Unix developers who run ls --color will then | 9 permission on for no good reason. Unix developers who run ls --color will then |
10 see .cc files in green and get confused. | 10 see .cc files in green and get confused. |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 '/third_party/lcov/bin/mcov', | 72 '/third_party/lcov/bin/mcov', |
73 '/third_party/lcov-1.9/bin/gendesc', | 73 '/third_party/lcov-1.9/bin/gendesc', |
74 '/third_party/lcov-1.9/bin/genhtml', | 74 '/third_party/lcov-1.9/bin/genhtml', |
75 '/third_party/lcov-1.9/bin/geninfo', | 75 '/third_party/lcov-1.9/bin/geninfo', |
76 '/third_party/lcov-1.9/bin/genpng', | 76 '/third_party/lcov-1.9/bin/genpng', |
77 '/third_party/lcov-1.9/bin/lcov', | 77 '/third_party/lcov-1.9/bin/lcov', |
78 '/third_party/libxml/linux/xml2-config', | 78 '/third_party/libxml/linux/xml2-config', |
79 '/third_party/lzma_sdk/executable/7za.exe', | 79 '/third_party/lzma_sdk/executable/7za.exe', |
80 '/third_party/swig/linux/swig', | 80 '/third_party/swig/linux/swig', |
81 '/third_party/tcmalloc/chromium/src/pprof', | 81 '/third_party/tcmalloc/chromium/src/pprof', |
| 82 '/tools/deep_memory_profiler/dmprof', |
82 '/tools/git/post-checkout', | 83 '/tools/git/post-checkout', |
83 '/tools/git/post-merge', | 84 '/tools/git/post-merge', |
84 '/tools/ld_bfd/ld', | 85 '/tools/ld_bfd/ld', |
85 ] | 86 ] |
86 | 87 |
87 # File names that are always whitelisted. (These are all autoconf spew.) | 88 # File names that are always whitelisted. (These are all autoconf spew.) |
88 WHITELIST_FILENAMES = set(( | 89 WHITELIST_FILENAMES = set(( |
89 'config.guess', | 90 'config.guess', |
90 'config.sub', | 91 'config.sub', |
91 'configure', | 92 'configure', |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 success = CheckDirectory(start_dir) | 334 success = CheckDirectory(start_dir) |
334 if not success: | 335 if not success: |
335 print '\nFAILED\n' | 336 print '\nFAILED\n' |
336 return 1 | 337 return 1 |
337 print '\nSUCCESS\n' | 338 print '\nSUCCESS\n' |
338 return 0 | 339 return 0 |
339 | 340 |
340 | 341 |
341 if '__main__' == __name__: | 342 if '__main__' == __name__: |
342 sys.exit(main(sys.argv)) | 343 sys.exit(main(sys.argv)) |
OLD | NEW |