| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2010 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 '/chrome/tools/build/mac/clean_up_old_versions', | 52 '/chrome/tools/build/mac/clean_up_old_versions', |
| 53 '/chrome/tools/build/mac/copy_framework_unversioned', | 53 '/chrome/tools/build/mac/copy_framework_unversioned', |
| 54 '/chrome/tools/build/mac/dump_product_syms', | 54 '/chrome/tools/build/mac/dump_product_syms', |
| 55 '/chrome/tools/build/mac/generate_localizer', | 55 '/chrome/tools/build/mac/generate_localizer', |
| 56 '/chrome/tools/build/mac/make_sign_sh', | 56 '/chrome/tools/build/mac/make_sign_sh', |
| 57 '/chrome/tools/build/mac/tweak_info_plist', | 57 '/chrome/tools/build/mac/tweak_info_plist', |
| 58 '/chrome/tools/build/mac/verify_order', | 58 '/chrome/tools/build/mac/verify_order', |
| 59 '/o3d/build/gyp_o3d', | 59 '/o3d/build/gyp_o3d', |
| 60 '/o3d/gypbuild', | 60 '/o3d/gypbuild', |
| 61 '/o3d/installer/linux/debian.in/rules', | 61 '/o3d/installer/linux/debian.in/rules', |
| 62 '/third_party/ffmpeg/patched-ffmpeg/tools', | |
| 63 '/third_party/icu/source/runconfigureicu', | 62 '/third_party/icu/source/runconfigureicu', |
| 64 '/third_party/lcov/bin/gendesc', | 63 '/third_party/lcov/bin/gendesc', |
| 65 '/third_party/lcov/bin/genhtml', | 64 '/third_party/lcov/bin/genhtml', |
| 66 '/third_party/lcov/bin/geninfo', | 65 '/third_party/lcov/bin/geninfo', |
| 67 '/third_party/lcov/bin/genpng', | 66 '/third_party/lcov/bin/genpng', |
| 68 '/third_party/lcov/bin/lcov', | 67 '/third_party/lcov/bin/lcov', |
| 69 '/third_party/lcov/bin/mcov', | 68 '/third_party/lcov/bin/mcov', |
| 70 '/third_party/libxml/linux/xml2-config', | 69 '/third_party/libxml/linux/xml2-config', |
| 71 '/third_party/lzma_sdk/executable/7za.exe', | 70 '/third_party/lzma_sdk/executable/7za.exe', |
| 72 '/third_party/swig/linux/swig', | 71 '/third_party/swig/linux/swig', |
| (...skipping 12 matching lines...) Expand all Loading... |
| 85 'missing', | 84 'missing', |
| 86 'mkinstalldirs' | 85 'mkinstalldirs' |
| 87 )) | 86 )) |
| 88 | 87 |
| 89 # File paths that contain these regexps will be whitelisted as well. | 88 # File paths that contain these regexps will be whitelisted as well. |
| 90 WHITELIST_REGEX = [ | 89 WHITELIST_REGEX = [ |
| 91 re.compile('/third_party/openssl/'), | 90 re.compile('/third_party/openssl/'), |
| 92 re.compile('/third_party/sqlite/'), | 91 re.compile('/third_party/sqlite/'), |
| 93 re.compile('/third_party/xdg-utils/'), | 92 re.compile('/third_party/xdg-utils/'), |
| 94 re.compile('/third_party/yasm/source/patched-yasm/config'), | 93 re.compile('/third_party/yasm/source/patched-yasm/config'), |
| 94 re.compile('/third_party/ffmpeg/patched-ffmpeg/tools'), |
| 95 ] | 95 ] |
| 96 | 96 |
| 97 #### USER EDITABLE SECTION ENDS HERE #### | 97 #### USER EDITABLE SECTION ENDS HERE #### |
| 98 | 98 |
| 99 WHITELIST_EXTENSIONS_REGEX = re.compile(r'\.(%s)' % | 99 WHITELIST_EXTENSIONS_REGEX = re.compile(r'\.(%s)' % |
| 100 '|'.join(WHITELIST_EXTENSIONS)) | 100 '|'.join(WHITELIST_EXTENSIONS)) |
| 101 | 101 |
| 102 WHITELIST_FILES_REGEX = re.compile(r'(%s)$' % '|'.join(WHITELIST_FILES)) | 102 WHITELIST_FILES_REGEX = re.compile(r'(%s)$' % '|'.join(WHITELIST_FILES)) |
| 103 | 103 |
| 104 # Set to true for more output. This is set by the command line options. | 104 # Set to true for more output. This is set by the command line options. |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 success = CheckDirectory(start_dir) | 321 success = CheckDirectory(start_dir) |
| 322 if not success: | 322 if not success: |
| 323 print '\nFAILED\n' | 323 print '\nFAILED\n' |
| 324 return 1 | 324 return 1 |
| 325 print '\nSUCCESS\n' | 325 print '\nSUCCESS\n' |
| 326 return 0 | 326 return 0 |
| 327 | 327 |
| 328 | 328 |
| 329 if '__main__' == __name__: | 329 if '__main__' == __name__: |
| 330 sys.exit(main(sys.argv)) | 330 sys.exit(main(sys.argv)) |
| OLD | NEW |