| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Helper tool that is built and run during a build to pull strings from | 5 // Helper tool that is built and run during a build to pull strings from |
| 6 // the GRD files and generate the InfoPlist.strings files needed for | 6 // the GRD files and generate the InfoPlist.strings files needed for |
| 7 // Mac OS X app bundles. | 7 // Mac OS X app bundles. |
| 8 | 8 |
| 9 #import <Foundation/Foundation.h> | 9 #import <Foundation/Foundation.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 [output_path stringByAppendingPathComponent:@"InfoPlist.strings"]; | 326 [output_path stringByAppendingPathComponent:@"InfoPlist.strings"]; |
| 327 if (![strings_file_contents_utf8 writeToFile:output_path | 327 if (![strings_file_contents_utf8 writeToFile:output_path |
| 328 atomically:YES]) { | 328 atomically:YES]) { |
| 329 fprintf(stderr, "ERROR: Failed to write out '%s'\n", | 329 fprintf(stderr, "ERROR: Failed to write out '%s'\n", |
| 330 [output_path UTF8String]); | 330 [output_path UTF8String]); |
| 331 exit(1); | 331 exit(1); |
| 332 } | 332 } |
| 333 } | 333 } |
| 334 return 0; | 334 return 0; |
| 335 } | 335 } |
| OLD | NEW |