## 应用场景
项目组打包时需要修改若干目录下的若干配置文件,其中每个文件修改的场所也挺多,所以这种修改带来的人力成本大,所以建议采用脚本来修改,大大提高效率。
## 修正脚本(modify_version.py)
import os,sys,re
g_update_dir = "update"
g_new_version = "20"
g_new_date = "20151124"
#####################################################################################
g_server_all_flag = ["SERVER", "SERVER_SYSTEM", "SERVER_HW", "SERVER_FIRMWARE", "SERVER_OS", "SERVER_APP", "SERVER_CMT", "SERVER_epg"] # All
g_server_sys_flag = ["SERVER", "SERVER_SYSTEM", "SERVER_HW", "SERVER_FIRMWARE", "SERVER_OS"] #System
g_server_app_flag = ["SERVER", "SERVER_APP", "SERVER_CMT", "SERVER_epg"] #EPG && CMT_Web
g_server_cmt_flag = ["SERVER", "SERVER_APP", "SERVER_CMT"] # CMT_Web
g_server_epg_flag = ["SERVER", "SERVER_APP", "SERVER_epg"] # EPG
g_cmt_all_flag = ["CMT", "CMT_HW", "CMT_SYSTEM", "CMT_FIRMWARE","CMT_OS","CMT_APP","SERVER_CMA"] # All
g_cmt_sys_flag = ["CMT", "CMT_HW", "CMT_SYSTEM", "CMT_FIRMWARE","CMT_OS"] # System
g_cmt_app_flag = ["CMT", "CMT_APP","SERVER_CMA"] #App
g_adb_all_flag = ["ADB","ADB_