| 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 """Helper script to repack paks for a list of locales. | 6 """Helper script to repack paks for a list of locales. |
| 7 | 7 |
| 8 Gyp doesn't have any built-in looping capability, so this just provides a way to | 8 Gyp doesn't have any built-in looping capability, so this just provides a way to |
| 9 loop over a list of locales when repacking pak files, thus avoiding a | 9 loop over a list of locales when repacking pak files, thus avoiding a |
| 10 proliferation of mostly duplicate, cut-n-paste gyp actions. | 10 proliferation of mostly duplicate, cut-n-paste gyp actions. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 #e.g. '<(grit_out_dir)/platform_locale_settings_da.pak' | 73 #e.g. '<(grit_out_dir)/platform_locale_settings_da.pak' |
| 74 inputs.append(os.path.join(GRIT_DIR, | 74 inputs.append(os.path.join(GRIT_DIR, |
| 75 'platform_locale_settings_%s.pak' % locale)) | 75 'platform_locale_settings_%s.pak' % locale)) |
| 76 | 76 |
| 77 #e.g. '<(SHARED_INTERMEDIATE_DIR)/components/strings/ | 77 #e.g. '<(SHARED_INTERMEDIATE_DIR)/components/strings/ |
| 78 # component_strings_da.pak', | 78 # component_strings_da.pak', |
| 79 inputs.append(os.path.join(SHARE_INT_DIR, 'components', 'strings', | 79 inputs.append(os.path.join(SHARE_INT_DIR, 'components', 'strings', |
| 80 'component_strings_%s.pak' % locale)) | 80 'component_strings_%s.pak' % locale)) |
| 81 | 81 |
| 82 if USE_ASH: | 82 if USE_ASH: |
| 83 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ash_strings/ash_strings_da.pak', | 83 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ash/strings/ash_strings_da.pak', |
| 84 inputs.append(os.path.join(SHARE_INT_DIR, 'ash_strings', | 84 inputs.append(os.path.join(SHARE_INT_DIR, 'ash', 'strings', |
| 85 'ash_strings_%s.pak' % locale)) | 85 'ash_strings_%s.pak' % locale)) |
| 86 | 86 |
| 87 if OS != 'ios': | 87 if OS != 'ios': |
| 88 #e.g. '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_da.pak' | 88 #e.g. '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_da.pak' |
| 89 inputs.append(os.path.join(SHARE_INT_DIR, 'webkit', | 89 inputs.append(os.path.join(SHARE_INT_DIR, 'webkit', |
| 90 'webkit_strings_%s.pak' % locale)) | 90 'webkit_strings_%s.pak' % locale)) |
| 91 | 91 |
| 92 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings_da.pak', | 92 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings_da.pak', |
| 93 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'ui_strings', | 93 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'ui_strings', |
| 94 'ui_strings_%s.pak' % locale)) | 94 'ui_strings_%s.pak' % locale)) |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 | 241 |
| 242 if print_outputs: | 242 if print_outputs: |
| 243 return list_outputs(locales) | 243 return list_outputs(locales) |
| 244 | 244 |
| 245 return repack_locales(locales) | 245 return repack_locales(locales) |
| 246 | 246 |
| 247 if __name__ == '__main__': | 247 if __name__ == '__main__': |
| 248 results = DoMain(sys.argv[1:]) | 248 results = DoMain(sys.argv[1:]) |
| 249 if results: | 249 if results: |
| 250 print results | 250 print results |
| OLD | NEW |