| 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 '''The 'grit build' tool along with integration for this tool with the | 6 '''The 'grit build' tool along with integration for this tool with the |
| 7 SCons build system. | 7 SCons build system. |
| 8 ''' | 8 ''' |
| 9 | 9 |
| 10 import filecmp | 10 import filecmp |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 print '\n'.join(warnings) | 283 print '\n'.join(warnings) |
| 284 | 284 |
| 285 # Print out any fallback warnings, and missing translation errors, and | 285 # Print out any fallback warnings, and missing translation errors, and |
| 286 # exit with an error code if there are missing translations in a non-pseudo | 286 # exit with an error code if there are missing translations in a non-pseudo |
| 287 # and non-official build. | 287 # and non-official build. |
| 288 warnings = (self.res.UberClique().MissingTranslationsReport(). | 288 warnings = (self.res.UberClique().MissingTranslationsReport(). |
| 289 encode('ascii', 'replace')) | 289 encode('ascii', 'replace')) |
| 290 if warnings and self.defines.get('_google_chrome', False): | 290 if warnings and self.defines.get('_google_chrome', False): |
| 291 print warnings | 291 print warnings |
| 292 if self.res.UberClique().HasMissingTranslations(): | 292 if self.res.UberClique().HasMissingTranslations(): |
| 293 print self.res.UberClique().missing_translations_ |
| 293 sys.exit(-1) | 294 sys.exit(-1) |
| OLD | NEW |