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