summaryrefslogtreecommitdiff
path: root/morphlib/builder2.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-02-19 15:29:48 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-02-19 15:33:14 +0000
commitc7ad7b41011f4cfab14a21d0363a511b86969e86 (patch)
tree84bb2c13905fe8d3017ee1dc0eefef4d891f8a15 /morphlib/builder2.py
parent24866984ce4c1e2e444ea4aaf2d4860c60ac617f (diff)
downloadmorph-c7ad7b41011f4cfab14a21d0363a511b86969e86.tar.gz
Add pre- and post-commands for chunks
We already have configure-commands. Add pre-configure-commands and post-configure-commands. Likewise for build-command, test-commands, and install-commands. Added-to-pacify: Rob Kendrick
Diffstat (limited to 'morphlib/builder2.py')
-rw-r--r--morphlib/builder2.py18
1 files changed, 14 insertions, 4 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py
index 68768699..e2b5d020 100644
--- a/morphlib/builder2.py
+++ b/morphlib/builder2.py
@@ -411,10 +411,20 @@ class ChunkBuilder(BuilderBase):
relative_destdir = self.staging_area.relative(destdir)
self.build_env.env['DESTDIR'] = relative_destdir
- steps = [('configure', False),
- ('build', True),
- ('test', False),
- ('install', False)]
+ steps = [
+ ('pre-configure', False),
+ ('configure', False),
+ ('post-configure', False),
+ ('pre-build', True),
+ ('build', True),
+ ('post-build', True),
+ ('pre-test', False),
+ ('test', False),
+ ('post-test', False),
+ ('pre-install', False),
+ ('install', False),
+ ('post-install', False),
+ ]
for step, in_parallel in steps:
with self.build_watch(step):
key = '%s-commands' % step