| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 'ash_strings_%s.pak' % locale)) | 90 'ash_strings_%s.pak' % locale)) |
| 91 | 91 |
| 92 if USE_ATHENA: | 92 if USE_ATHENA: |
| 93 #e.g. '<(SHARED_INTERMEDIATE_DIR)/athena/strings/athena_strings_da.pak', | 93 #e.g. '<(SHARED_INTERMEDIATE_DIR)/athena/strings/athena_strings_da.pak', |
| 94 inputs.append(os.path.join(SHARE_INT_DIR, 'athena', 'strings', | 94 inputs.append(os.path.join(SHARE_INT_DIR, 'athena', 'strings', |
| 95 'athena_strings_%s.pak' % locale)) | 95 'athena_strings_%s.pak' % locale)) |
| 96 | 96 |
| 97 if CHROMEOS: | 97 if CHROMEOS: |
| 98 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'chromeos', 'strings', | 98 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'chromeos', 'strings', |
| 99 'ui_chromeos_strings_%s.pak' % locale)) | 99 'ui_chromeos_strings_%s.pak' % locale)) |
| 100 inputs.append(os.path.join(SHARE_INT_DIR, 'remoting', 'resources', |
| 101 '%s.pak' % locale)) |
| 100 | 102 |
| 101 if OS != 'ios': | 103 if OS != 'ios': |
| 102 #e.g. | 104 #e.g. |
| 103 # '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_da.pak' | 105 # '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_da.pak' |
| 104 inputs.append(os.path.join(SHARE_INT_DIR, 'content', 'app', 'strings', | 106 inputs.append(os.path.join(SHARE_INT_DIR, 'content', 'app', 'strings', |
| 105 'content_strings_%s.pak' % locale)) | 107 'content_strings_%s.pak' % locale)) |
| 106 | 108 |
| 107 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_da.pak', | 109 #e.g. '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_da.pak', |
| 108 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'strings', | 110 inputs.append(os.path.join(SHARE_INT_DIR, 'ui', 'strings', |
| 109 'ui_strings_%s.pak' % locale)) | 111 'ui_strings_%s.pak' % locale)) |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 272 |
| 271 if print_outputs: | 273 if print_outputs: |
| 272 return list_outputs(locales) | 274 return list_outputs(locales) |
| 273 | 275 |
| 274 return repack_locales(locales) | 276 return repack_locales(locales) |
| 275 | 277 |
| 276 if __name__ == '__main__': | 278 if __name__ == '__main__': |
| 277 results = DoMain(sys.argv[1:]) | 279 results = DoMain(sys.argv[1:]) |
| 278 if results: | 280 if results: |
| 279 print results | 281 print results |
| OLD | NEW |