- if args.update:
- print "Updating project",project.sourceFolder()
- project.vcs.update(forceVersion=args.reset_source)
- print "Building project",project.sourceFolder()
- project.buildSystem.build(reconfigure=args.reconfigure, waitAfterConfig=args.wait_after_config)
- print
+ if args.version_check:
+ print("Checking project",project.sourceFolder())
+ project.vcs.checkVersions()
+ else:
+ if args.update:
+ print("Updating project",project.sourceFolder())
+ project.vcs.update(mode = vcs.MODE_RESET if args.reset_source else vcs.MODE_REBASE)
+ print("Building project",project.sourceFolder())
+ project.buildSystem.build(reconfigure=args.reconfigure, waitAfterConfig=args.wait_after_config)
+ print()