| LEFT | RIGHT |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # ***** BEGIN LICENSE BLOCK ***** | 2 # ***** BEGIN LICENSE BLOCK ***** |
| 3 # This Source Code Form is subject to the terms of the Mozilla Public | 3 # This Source Code Form is subject to the terms of the Mozilla Public |
| 4 # License, v. 2.0. If a copy of the MPL was not distributed with this file, | 4 # License, v. 2.0. If a copy of the MPL was not distributed with this file, |
| 5 # You can obtain one at http://mozilla.org/MPL/2.0/. | 5 # You can obtain one at http://mozilla.org/MPL/2.0/. |
| 6 # ***** END LICENSE BLOCK ***** | 6 # ***** END LICENSE BLOCK ***** |
| 7 """multi_locale_build.py | 7 """multi_locale_build.py |
| 8 | 8 |
| 9 This should be a mostly generic multilocale build script. | 9 This should be a mostly generic multilocale build script. |
| 10 """ | 10 """ |
| 11 | 11 |
| 12 from copy import deepcopy | 12 from copy import deepcopy |
| 13 import os | 13 import os |
| 14 import sys | 14 import sys |
| 15 | 15 |
| 16 sys.path.insert(1, os.path.dirname(os.path.dirname(sys.path[0]))) | 16 sys.path.insert(1, os.path.dirname(os.path.dirname(sys.path[0]))) |
| 17 | 17 |
| 18 from mozharness.base.errors import MakefileErrorList, SSHErrorList | 18 from mozharness.base.errors import MakefileErrorList, SSHErrorList |
| 19 from mozharness.base.log import FATAL | 19 from mozharness.base.log import FATAL |
| 20 from mozharness.base.vcs.vcsbase import MercurialScript | 20 from mozharness.base.vcs.vcsbase import MercurialScript |
| 21 from mozharness.mozilla.l10n.locales import LocalesMixin | 21 from mozharness.mozilla.l10n.locales import LocalesMixin |
| 22 from mozharness.abb.abb_transform_locales import transform_locales as abb_transf
orm_locales | 22 from mozharness.abb.transform_locales import transform_locales as abb_transform_
locales |
| 23 | 23 |
| 24 | 24 |
| 25 # MultiLocaleBuild {{{1 | 25 # MultiLocaleBuild {{{1 |
| 26 class MultiLocaleBuild(LocalesMixin, MercurialScript): | 26 class MultiLocaleBuild(LocalesMixin, MercurialScript): |
| 27 """ This class targets Fennec multilocale builds. | 27 """ This class targets Fennec multilocale builds. |
| 28 We were considering this for potential Firefox desktop multilocale. | 28 We were considering this for potential Firefox desktop multilocale. |
| 29 Now that we have a different approach for B2G multilocale, | 29 Now that we have a different approach for B2G multilocale, |
| 30 it's most likely misnamed. """ | 30 it's most likely misnamed. """ |
| 31 config_options = [[ | 31 config_options = [[ |
| 32 ["--locale"], | 32 ["--locale"], |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 """ | 249 """ |
| 250 return self.run_command(**kwargs) | 250 return self.run_command(**kwargs) |
| 251 | 251 |
| 252 def abb_transform_locales(self): | 252 def abb_transform_locales(self): |
| 253 dirs = self.query_abs_dirs() | 253 dirs = self.query_abs_dirs() |
| 254 abb_transform_locales(dirs['abs_objdir'], self) | 254 abb_transform_locales(dirs['abs_objdir'], self) |
| 255 | 255 |
| 256 # __main__ {{{1 | 256 # __main__ {{{1 |
| 257 if __name__ == '__main__': | 257 if __name__ == '__main__': |
| 258 pass | 258 pass |
| LEFT | RIGHT |