From 064790189c1930067e2c78bbeb2a9488e1f45f57 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Thu, 28 Nov 2019 00:17:32 -0500 Subject: 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) --- python/mozbuild/mozbuild/mach_commands.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'python/mozbuild') diff --git a/python/mozbuild/mozbuild/mach_commands.py b/python/mozbuild/mozbuild/mach_commands.py index 26c05ee91..5933a5aa9 100644 --- a/python/mozbuild/mozbuild/mach_commands.py +++ b/python/mozbuild/mozbuild/mach_commands.py @@ -1079,6 +1079,15 @@ class Stage_Package(MachCommandBase): def stage_package(self): 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.""" -- cgit v1.2.3