def make(): ver = com.get_lvgl_version("master") release_note = lvgl_release(ver) lv_examples_release(ver) lv_drivers_release(ver) docs_release(ver) blog_release(ver, release_note)
def make(mode): if (mode == "bugfix"): ver = com.get_lvgl_version("master") ver[3] = "dev" ver[2] = str(int(ver[2]) + 1) lvgl_update_ver(ver, "master") docs_update_ver(ver, "latest") else: ver = com.get_lvgl_version("dev") ver[3] = "dev" merge_dev_to_master() if (mode == "major"): ver[0] = str(int(ver[0]) + 1) ver[1] = '0' ver[2] = '0' if (mode == "minor"): ver[1] = str(int(ver[1]) + 1) ver[2] = '0' lvgl_upadte_ver(ver, "dev") docs_update_ver(ver, "dev")
commits = [] with open('../commits.txt') as f: for line in f: commits.insert(0, line) print(commits) for br in branches: com.cmd("git checkout " + br) print("Applying commits") for c in commits: h = c.split(" ") com.cmd("git cherry-pick " + h[0]) ver = com.get_lvgl_version(br) ver_new = ver.copy() ver_new[2] = str(int(ver_new[2]) + 1) print("Updating branch '" + br + "' from '" + com.ver_format(ver) + "' to '" + com.ver_format(ver_new) + "'") com.update_version(ver_new) com.cmd("git tag -a " + com.ver_format(ver_new) + "-m \"Release " + com.ver_format(ver_new) + "\"") if push: com.cmd("git push origin " + br + "--tags") com.cmd("git checkout master") ver = com.get_lvgl_version("master") ver = com.get_lvgl_version(br) ver_new[2] = str(int(ver_new[2]) + 1)