| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 #e.g. '<(SHARED_INTERMEDIATE_DIR)/components/strings/ | 92 #e.g. '<(SHARED_INTERMEDIATE_DIR)/components/strings/ |
| 93 # components_chromium_strings_da.pak' | 93 # components_chromium_strings_da.pak' |
| 94 # or | 94 # or |
| 95 # '<(SHARED_INTERMEDIATE_DIR)/components/strings/ | 95 # '<(SHARED_INTERMEDIATE_DIR)/components/strings/ |
| 96 # components_google_chrome_strings_da.pak', | 96 # components_google_chrome_strings_da.pak', |
| 97 inputs.append(os.path.join(SHARE_INT_DIR, 'components', 'strings', | 97 inputs.append(os.path.join(SHARE_INT_DIR, 'components', 'strings', |
| 98 'components_%s_strings_%s.pak' % (BRANDING, locale))) | 98 'components_%s_strings_%s.pak' % (BRANDING, locale))) |
| 99 | 99 |
| 100 if USE_ASH: | 100 if USE_ASH: |
| 101 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ash/common/strings/ash_strings_da.pak', | 101 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ash/strings/ash_strings_da.pak', |
| 102 inputs.append(os.path.join(SHARE_INT_DIR, 'ash', 'common', 'strings', | 102 inputs.append(os.path.join(SHARE_INT_DIR, 'ash', 'strings', |
| 103 'ash_strings_%s.pak' % locale)) | 103 'ash_strings_%s.pak' % locale)) |
| 104 | 104 |
| 105 if CHROMEOS: | 105 if CHROMEOS: |
| 106 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'chromeos', 'strings', | 106 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'chromeos', 'strings', |
| 107 'ui_chromeos_strings_%s.pak' % locale)) | 107 'ui_chromeos_strings_%s.pak' % locale)) |
| 108 inputs.append(os.path.join(SHARE_INT_DIR, 'remoting', 'resources', | 108 inputs.append(os.path.join(SHARE_INT_DIR, 'remoting', 'resources', |
| 109 '%s.pak' % locale)) | 109 '%s.pak' % locale)) |
| 110 | 110 |
| 111 if OS != 'ios': | 111 if OS != 'ios': |
| 112 #e.g. | 112 #e.g. |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 290 |
| 291 if print_outputs: | 291 if print_outputs: |
| 292 return list_outputs(locales) | 292 return list_outputs(locales) |
| 293 | 293 |
| 294 return repack_locales(locales) | 294 return repack_locales(locales) |
| 295 | 295 |
| 296 if __name__ == '__main__': | 296 if __name__ == '__main__': |
| 297 results = DoMain(sys.argv[1:]) | 297 results = DoMain(sys.argv[1:]) |
| 298 if results: | 298 if results: |
| 299 print results | 299 print results |
| OLD | NEW |