[banshee] [build] when build.py is passed -e, dump the env
- From: Aaron Bockover <abock src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [build] when build.py is passed -e, dump the env
- Date: Tue, 29 Dec 2009 14:09:11 +0000 (UTC)
commit f863e077481c1363c184247087a712ac98e97613
Author: Aaron Bockover <abockover novell com>
Date: Tue Dec 29 09:06:32 2009 -0500
[build] when build.py is passed -e, dump the env
build/bundle/build.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/build/bundle/build.py b/build/bundle/build.py
index 3875439..e7b8a44 100755
--- a/build/bundle/build.py
+++ b/build/bundle/build.py
@@ -221,6 +221,9 @@ if __name__ == '__main__':
parser.add_option ('-s', '--only-sources',
action = 'store_true', dest = 'only_sources', default = False,
help = 'only fetch sources, do not run any build phases')
+ parser.add_option ('-e', '--environment', default = False,
+ action = 'store_true', dest = 'dump_environment',
+ help = 'Dump the profile environment as a shell-sourceable list of exports ')
options, args = parser.parse_args ()
if args == []:
@@ -249,6 +252,11 @@ if __name__ == '__main__':
profile.setdefault ('verbose', options.verbose)
profile.setdefault ('run_phases', default_run_phases)
+ if options.dump_environment:
+ for k, v in profile['environ'].iteritems ():
+ print 'export %s="%s"' % (k, v)
+ sys.exit (0)
+
if not options.include_run_phases == []:
profile['run_phases'] = options.include_run_phases
for exclude_phase in options.exclude_run_phases:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]