- for phase in args.phases:
- if phase == 'update':
- print "Updating",project.sourceFolder()
- project.vcs.update()
- elif phase == 'configure':
- print "Configuring",project.sourceFolder()
- project.buildSystem.configure(force=args.reconfigure)
- elif phase == 'compile':
- print "Compiling",project.sourceFolder()
- project.buildSystem.build()
- print "Installing",project.sourceFolder()
- project.buildSystem.install()
- else:
- raise Exception("Invalid phase "+phase)
+ if args.update:
+ print "Updating module",project.sourceFolder()
+ project.vcs.update()
+ print "Building module",project.sourceFolder()
+ project.buildSystem.build(reconfigure=args.reconfigure)
+ print