def main(): mode = 'default' submode = None if (len(sys.argv) > 1): mode = sys.argv[1] if (len(sys.argv) > 2): submode = sys.argv[2] if mode == 'default': print('usage:\n' ' eve.py update --- Update or install EiffelStudio; update and compile EVE.\n' ' eve.py finalize eve --- Finalize EVE.\n' ' eve.py eve --- Launch finalized EVE.\n' ' eve.py es --- Launch EiffelStudio.\n') elif mode == 'es': run_eiffel_studio() elif mode == 'eve': run_eve() elif mode == 'check': if not check_environment_variables(): update_environment_variables() elif mode == 'update' and submode == None: update_EiffelStudio() esvn.update_repository(config.v_url_svn_trunk_src, elocation.trunk_source()) compile_runtime() compile_eve('bench') elif mode == 'update' and (submode == 'EiffelStudio' or submode == 'es'): update_EiffelStudio() elif mode == 'update' and submode == 'source': esvn.update_repository(config.v_url_svn_trunk_src, elocation.trunk_source()) elif mode == 'compile' and submode == 'runtime': if not check_environment_variables(): update_environment_variables() ecompile.compile_runtime() elif mode == 'compile' and (submode == None or submode == 'eve'): if not check_environment_variables(): update_environment_variables() #compile_eve('bench') compile_eve ('batch', 'ecb') elif mode == 'finalize' and (submode == None or submode == 'eve'): if not check_environment_variables(): update_environment_variables() #finalize_eve('bench') finalize_eve ('batch', 'ecb') elif mode == 'delivery': if not check_environment_variables(): update_environment_variables() make_delivery() elif mode == 'merge': make_merge() elif mode == 'eweasel': eweasel.main (sys.argv[1:]) else: if submode == None: SystemLogger.error("invalid option " + mode) else: SystemLogger.error("invalid option " + mode + " / " + submode) return
def compile_runtime(): ecompile.compile_runtime()