| 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.app/contents/' |
| 54 'macos/app_mode_loader', |
| 53 'chrome/test/data/extensions/uitest/plugins/plugin.plugin/contents/' | 55 'chrome/test/data/extensions/uitest/plugins/plugin.plugin/contents/' |
| 54 'macos/testnetscapeplugin', | 56 'macos/testnetscapeplugin', |
| 55 'chrome/test/data/extensions/uitest/plugins_private/plugin.plugin/contents/' | 57 'chrome/test/data/extensions/uitest/plugins_private/plugin.plugin/contents/' |
| 56 'macos/testnetscapeplugin', | 58 'macos/testnetscapeplugin', |
| 57 ) | 59 ) |
| 58 | 60 |
| 59 # These files must not have the executable bit set. This is mainly a performance | 61 # 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 | 62 # optimization as these files are not checked for shebang. The list was |
| 61 # partially generated from: | 63 # partially generated from: |
| 62 # git ls-files | grep "\\." | sed 's/.*\.//' | sort | uniq -c | sort -b -g | 64 # 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' | 534 print '\nFAILED\n' |
| 533 print '\n'.join('%s: %s' % (e['full_path'], e['error']) for e in errors) | 535 print '\n'.join('%s: %s' % (e['full_path'], e['error']) for e in errors) |
| 534 return 1 | 536 return 1 |
| 535 if not options.bare: | 537 if not options.bare: |
| 536 print '\nSUCCESS\n' | 538 print '\nSUCCESS\n' |
| 537 return 0 | 539 return 0 |
| 538 | 540 |
| 539 | 541 |
| 540 if '__main__' == __name__: | 542 if '__main__' == __name__: |
| 541 sys.exit(main()) | 543 sys.exit(main()) |
| OLD | NEW |