summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-11-28 00:17:32 -0500
committerMatt A. Tobin <email@mattatobin.com>2019-11-28 00:17:32 -0500
commit064790189c1930067e2c78bbeb2a9488e1f45f57 (patch)
tree3b6b4358ca4fb9ca326a280932aafab5c5dca920 /python
parent52cb294d2a5408d5eac6ac4ad5285165c6877932 (diff)
downloaduxp-064790189c1930067e2c78bbeb2a9488e1f45f57.tar.gz
Issue #1303 - Add langpack generation targets for Pale Moon and Basilisk
* The langpack is not generated via the package target but IS for mozpackage target using old behavior * Add mach command to specifically generate the langpack when needed without the rest of the packaging routine (mach langpack)
Diffstat (limited to 'python')
-rw-r--r--python/mozbuild/mozbuild/mach_commands.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/mozbuild/mozbuild/mach_commands.py b/python/mozbuild/mozbuild/mach_commands.py
index 26c05ee911..5933a5aa98 100644
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -1080,6 +1080,15 @@ class Stage_Package(MachCommandBase):
return self._run_make(directory=".", target='stage-package', ensure_exit_code=False)
@CommandProvider
+class L10n_Package(MachCommandBase):
+ """Build and package l10n as a language pack xpi."""
+
+ @Command('langpack', category='post-build',
+ description='Build and package l10n as a language pack.')
+ def l10n_package(self):
+ return self._run_make(directory=".", target='l10n-package', ensure_exit_code=False)
+
+@CommandProvider
class Package(MachCommandBase):
"""Package the built product for distribution."""