| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # This script is wrapper for Chromium that adds some support for how GYP | 7 # This script is wrapper for Chromium that adds some support for how GYP |
| 8 # is invoked by Chromium beyond what can be done in the gclient hooks. | 8 # is invoked by Chromium beyond what can be done in the gclient hooks. |
| 9 | 9 |
| 10 import glob | 10 import glob |
| 11 import os | 11 import os |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 # to enfore syntax checking. | 158 # to enfore syntax checking. |
| 159 syntax_check = os.environ.get('CHROMIUM_GYP_SYNTAX_CHECK') | 159 syntax_check = os.environ.get('CHROMIUM_GYP_SYNTAX_CHECK') |
| 160 if syntax_check and int(syntax_check): | 160 if syntax_check and int(syntax_check): |
| 161 args.append('--check') | 161 args.append('--check') |
| 162 | 162 |
| 163 print 'Updating projects from gyp files...' | 163 print 'Updating projects from gyp files...' |
| 164 sys.stdout.flush() | 164 sys.stdout.flush() |
| 165 | 165 |
| 166 # Off we go... | 166 # Off we go... |
| 167 sys.exit(gyp.main(args)) | 167 sys.exit(gyp.main(args)) |
| OLD | NEW |