def updateAction (): roseDirectory = selectROSEVersion () makeNeeded = copyFilesIfNeeded (roseDirectory) if makeNeeded: makeROSE (roseDirectory) makeInstallROSE (roseDirectory) if queryYesNo("ROSE installation has changed. Shall I rebuild the translator?") == "yes": rebuildTranslator () else: debug.verboseMessage("ROSE installation has changed but the translator has NOT been rebuilt. Therefore, there may be errors when using the translator.") else: debug.verboseMessage("None of the files in the ROSE distribution have changed. Therefore, nothing to do.") if opts.check: checkEnvironment () boostDirectory = getBoostPath () debug.verboseMessage("Your environment is sane.") if opts.build: buildAction () debug.verboseMessage("ROSE build completed.") if opts.update: updateAction () debug.verboseMessage("Updating completed.") if not opts.build and not opts.update and not opts.check: debug.exitMessage("No actions selected. Use -h for options")
roseDirectory = selectROSEVersion() makeNeeded = copyFilesIfNeeded(roseDirectory) if makeNeeded: makeROSE(roseDirectory) makeInstallROSE(roseDirectory) if queryYesNo("ROSE installation has changed. Shall I rebuild the translator?") == "yes": rebuildTranslator() else: debug.verboseMessage( "ROSE installation has changed but the translator has NOT been rebuilt. Therefore, there may be errors when using the translator." ) else: debug.verboseMessage("None of the files in the ROSE distribution have changed. Therefore, nothing to do.") if opts.check: checkEnvironment() boostDirectory = getBoostPath() debug.verboseMessage("Your environment is sane.") if opts.build: buildAction() debug.verboseMessage("ROSE build completed.") if opts.update: updateAction() debug.verboseMessage("Updating completed.") if not opts.build and not opts.update and not opts.check: debug.exitMessage("No actions selected. Use -h for options")