| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2012 the V8 project authors. All rights reserved. | 3 # Copyright 2012 the V8 project authors. All rights reserved. |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 | 288 |
| 289 def GetPathsToSearch(self): | 289 def GetPathsToSearch(self): |
| 290 return ['.'] | 290 return ['.'] |
| 291 | 291 |
| 292 def IgnoreDir(self, name): | 292 def IgnoreDir(self, name): |
| 293 return (super(SourceProcessor, self).IgnoreDir(name) or | 293 return (super(SourceProcessor, self).IgnoreDir(name) or |
| 294 name in ('third_party', 'gyp', 'out', 'obj', 'DerivedSources')) | 294 name in ('third_party', 'gyp', 'out', 'obj', 'DerivedSources')) |
| 295 | 295 |
| 296 IGNORE_COPYRIGHTS = ['box2d.js', | 296 IGNORE_COPYRIGHTS = ['box2d.js', |
| 297 'cpplint.py', | 297 'cpplint.py', |
| 298 'check_injected_script_source.py', |
| 298 'copy.js', | 299 'copy.js', |
| 299 'corrections.js', | 300 'corrections.js', |
| 300 'crypto.js', | 301 'crypto.js', |
| 301 'daemon.py', | 302 'daemon.py', |
| 302 'debugger-script.js', | 303 'debugger-script.js', |
| 303 'earley-boyer.js', | 304 'earley-boyer.js', |
| 304 'fannkuch.js', | 305 'fannkuch.js', |
| 305 'fasta.js', | 306 'fasta.js', |
| 307 'generate_protocol_externs.py', |
| 306 'injected-script.cc', | 308 'injected-script.cc', |
| 307 'injected-script.h', | 309 'injected-script.h', |
| 308 'injected-script-source.js', | 310 'injected-script-source.js', |
| 309 'java-script-call-frame.cc', | 311 'java-script-call-frame.cc', |
| 310 'java-script-call-frame.h', | 312 'java-script-call-frame.h', |
| 311 'jsmin.py', | 313 'jsmin.py', |
| 312 'libraries.cc', | 314 'libraries.cc', |
| 313 'libraries-empty.cc', | 315 'libraries-empty.cc', |
| 314 'lua_binarytrees.js', | 316 'lua_binarytrees.js', |
| 315 'memops.js', | 317 'memops.js', |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 success &= CheckExternalReferenceRegistration(workspace) | 506 success &= CheckExternalReferenceRegistration(workspace) |
| 505 success &= CheckStatusFiles(workspace) | 507 success &= CheckStatusFiles(workspace) |
| 506 if success: | 508 if success: |
| 507 return 0 | 509 return 0 |
| 508 else: | 510 else: |
| 509 return 1 | 511 return 1 |
| 510 | 512 |
| 511 | 513 |
| 512 if __name__ == '__main__': | 514 if __name__ == '__main__': |
| 513 sys.exit(Main()) | 515 sys.exit(Main()) |
| OLD | NEW |