def packageMain(): func.tip('>>>> Start To Package build <<<<', '33'); func.tip('-------------------------------------'); func.tip('>>>> START to Check Uninited <<<<', '33'); check.checkUninited(); func.tip('>>>> No Uninitialized Sections <<<<', '33'); func.tip('-------------------------------------'); func.tip('>>>> START to Update Code <<<<', '33'); update.updateSvnCode(); func.tip('>>>> Update code on local <<<<', '33'); func.tip('-------------------------------------'); func.tip('>>>> Start to diff files <<<<', '33'); diff.updateDifflist() func.tip('>>>> Get Different List <<<<', '33'); func.tip('-------------------------------------'); func.tip('>>>> Start to Update Inis <<<<', '33'); config.generateCfgIni() func.tip('>>>> Get Latest Ini Config <<<<', '33'); func.tip('-------------------------------------'); func.tip('>>>> Start to Check Inis <<<<', '33'); check.checkCfgIni() func.tip('>>>> All Check Ini Finished <<<<', '33'); func.tip('-------------------------------------'); func.tip('>>>> Start to Gen package <<<<', '33'); package.package(); func.tip('>>>> Create New Package <<<<', '33'); func.tip('-------------------------------------');
def main(): argvNum = len(sys.argv) if argvNum == 1: packageMain() elif argvNum == 2: param = sys.argv[1].lower(); if param == 'rebuild': rebuildPackage() elif param == 'uninited': check.checkUninited(); elif param == 'init': initiateMain() elif param == 'package': packageMain() else: help() else: help()