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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 ) | 136 ) |
137 | 137 |
138 # These files must not have executable bit set. | 138 # These files must not have executable bit set. |
139 # | 139 # |
140 # Case-insensitive, lower-case only. | 140 # Case-insensitive, lower-case only. |
141 NON_EXECUTABLE_PATHS = ( | 141 NON_EXECUTABLE_PATHS = ( |
142 'build/android/tests/symbolize/liba.so', | 142 'build/android/tests/symbolize/liba.so', |
143 'build/android/tests/symbolize/libb.so', | 143 'build/android/tests/symbolize/libb.so', |
144 'chrome/installer/mac/sign_app.sh.in', | 144 'chrome/installer/mac/sign_app.sh.in', |
145 'chrome/installer/mac/sign_versioned_dir.sh.in', | 145 'chrome/installer/mac/sign_versioned_dir.sh.in', |
146 'chrome/test/data/components/ihfokbkgjpifnbbojhneepfflplebdkc/' | |
147 'ihfokbkgjpifnbbojhneepfflplebdkc_1/a_changing_binary_file', | |
148 'chrome/test/data/components/ihfokbkgjpifnbbojhneepfflplebdkc/' | |
149 'ihfokbkgjpifnbbojhneepfflplebdkc_2/a_changing_binary_file', | |
150 'chrome/test/data/extensions/uitest/plugins/plugin32.so', | 146 'chrome/test/data/extensions/uitest/plugins/plugin32.so', |
151 'chrome/test/data/extensions/uitest/plugins/plugin64.so', | 147 'chrome/test/data/extensions/uitest/plugins/plugin64.so', |
152 'chrome/test/data/extensions/uitest/plugins_private/plugin32.so', | 148 'chrome/test/data/extensions/uitest/plugins_private/plugin32.so', |
153 'chrome/test/data/extensions/uitest/plugins_private/plugin64.so', | 149 'chrome/test/data/extensions/uitest/plugins_private/plugin64.so', |
154 'components/test/data/component_updater/ihfokbkgjpifnbbojhneepfflplebdkc/' | 150 'components/test/data/component_updater/ihfokbkgjpifnbbojhneepfflplebdkc/' |
155 'ihfokbkgjpifnbbojhneepfflplebdkc_1/a_changing_binary_file', | 151 'ihfokbkgjpifnbbojhneepfflplebdkc_1/a_changing_binary_file', |
156 'components/test/data/component_updater/ihfokbkgjpifnbbojhneepfflplebdkc/' | 152 'components/test/data/component_updater/ihfokbkgjpifnbbojhneepfflplebdkc/' |
157 'ihfokbkgjpifnbbojhneepfflplebdkc_2/a_changing_binary_file', | 153 'ihfokbkgjpifnbbojhneepfflplebdkc_2/a_changing_binary_file', |
158 'courgette/testdata/elf-32-1', | 154 'courgette/testdata/elf-32-1', |
159 'courgette/testdata/elf-32-2', | 155 'courgette/testdata/elf-32-2', |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 print '\nFAILED\n' | 534 print '\nFAILED\n' |
539 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) |
540 return 1 | 536 return 1 |
541 if not options.bare: | 537 if not options.bare: |
542 print '\nSUCCESS\n' | 538 print '\nSUCCESS\n' |
543 return 0 | 539 return 0 |
544 | 540 |
545 | 541 |
546 if '__main__' == __name__: | 542 if '__main__' == __name__: |
547 sys.exit(main()) | 543 sys.exit(main()) |
OLD | NEW |