summaryrefslogtreecommitdiff
path: root/python/mozbuild
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-11-14 21:08:18 -0500
committerMatt A. Tobin <email@mattatobin.com>2019-11-14 21:08:18 -0500
commitfebc581f89d39145688bd442fe5bd9bbfa40f2be (patch)
treee6d5d551e13ce9c40474d637f5903e45b07b0667 /python/mozbuild
parentfd7ffdf61361cc1ac87f580964e5c46e3960a354 (diff)
downloaduxp-febc581f89d39145688bd442fe5bd9bbfa40f2be.tar.gz
[Mach] Add stage command to execute stage-package
Diffstat (limited to 'python/mozbuild')
-rw-r--r--python/mozbuild/mozbuild/mach_commands.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/mozbuild/mozbuild/mach_commands.py b/python/mozbuild/mozbuild/mach_commands.py
index c2e1a3e89f..05b1f104d3 100644
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -1070,6 +1070,14 @@ class ClangCommands(MachCommandBase):
print('-I%s/ipc/glue' % self.topsrcdir)
print('-I%s/ipc/ipdl/_ipdlheaders' % self.topobjdir)
+@CommandProvider
+class Stage_Package(MachCommandBase):
+ """Stage the built product for distribution but do not create an archive."""
+
+ @Command('stage', category='post-build',
+ description='Stage the built product for distribution but do not create an archive.')
+ def stage_package(self):
+ return self._run_make(directory=".", target='stage-package', ensure_exit_code=False)
@CommandProvider
class Package(MachCommandBase):