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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 'bat', | 43 'bat', |
44 'dll', | 44 'dll', |
45 'dylib', | 45 'dylib', |
46 'exe', | 46 'exe', |
47 ) | 47 ) |
48 | 48 |
49 # These files must have executable bit set. | 49 # These files must have executable bit set. |
50 # | 50 # |
51 # Case-insensitive, lower-case only. | 51 # Case-insensitive, lower-case only. |
52 EXECUTABLE_PATHS = ( | 52 EXECUTABLE_PATHS = ( |
| 53 'chrome/test/data/app_shim/app_shim_32_bit/contents/macos/app_mode_loader', |
53 'chrome/test/data/extensions/uitest/plugins/plugin.plugin/contents/' | 54 'chrome/test/data/extensions/uitest/plugins/plugin.plugin/contents/' |
54 'macos/testnetscapeplugin', | 55 'macos/testnetscapeplugin', |
55 'chrome/test/data/extensions/uitest/plugins_private/plugin.plugin/contents/' | 56 'chrome/test/data/extensions/uitest/plugins_private/plugin.plugin/contents/' |
56 'macos/testnetscapeplugin', | 57 'macos/testnetscapeplugin', |
57 ) | 58 ) |
58 | 59 |
59 # These files must not have the executable bit set. This is mainly a performance | 60 # These files must not have the executable bit set. This is mainly a performance |
60 # optimization as these files are not checked for shebang. The list was | 61 # optimization as these files are not checked for shebang. The list was |
61 # partially generated from: | 62 # partially generated from: |
62 # git ls-files | grep "\\." | sed 's/.*\.//' | sort | uniq -c | sort -b -g | 63 # git ls-files | grep "\\." | sed 's/.*\.//' | sort | uniq -c | sort -b -g |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 print '\nFAILED\n' | 533 print '\nFAILED\n' |
533 print '\n'.join('%s: %s' % (e['full_path'], e['error']) for e in errors) | 534 print '\n'.join('%s: %s' % (e['full_path'], e['error']) for e in errors) |
534 return 1 | 535 return 1 |
535 if not options.bare: | 536 if not options.bare: |
536 print '\nSUCCESS\n' | 537 print '\nSUCCESS\n' |
537 return 0 | 538 return 0 |
538 | 539 |
539 | 540 |
540 if '__main__' == __name__: | 541 if '__main__' == __name__: |
541 sys.exit(main()) | 542 sys.exit(main()) |
OLD | NEW |