mirror of
https://github.com/lvgl/lvgl.git
synced 2024-11-24 02:03:53 +08:00
update release script
This commit is contained in:
parent
c5c5b2a393
commit
6654444e0f
@ -26,7 +26,7 @@ def increment(s):
|
|||||||
|
|
||||||
def lvgl_clone():
|
def lvgl_clone():
|
||||||
title("lvgl: Clone")
|
title("lvgl: Clone")
|
||||||
cmd("git clone https://github.com/littlevgl/lvgl.git")
|
cmd("git clone https://github.com/lvgl/lvgl.git")
|
||||||
os.chdir("./lvgl")
|
os.chdir("./lvgl")
|
||||||
cmd("git co master")
|
cmd("git co master")
|
||||||
|
|
||||||
@ -53,7 +53,8 @@ def lvgl_update_version():
|
|||||||
|
|
||||||
r = re.search(r'^#define LVGL_VERSION_PATCH ', i)
|
r = re.search(r'^#define LVGL_VERSION_PATCH ', i)
|
||||||
if r:
|
if r:
|
||||||
i, patch_ver = increment(i)
|
m = lastNum.search(i)
|
||||||
|
if m: patch_ver = m.group(1)
|
||||||
|
|
||||||
|
|
||||||
r = re.search(r'^#define LVGL_VERSION_INFO ', i)
|
r = re.search(r'^#define LVGL_VERSION_INFO ', i)
|
||||||
@ -113,8 +114,8 @@ def lvgl_update_api_docs():
|
|||||||
def docs_clone():
|
def docs_clone():
|
||||||
title("docs: Clone")
|
title("docs: Clone")
|
||||||
os.chdir("../")
|
os.chdir("../")
|
||||||
cmd("git clone --recursive https://github.com/littlevgl/docs.git")
|
cmd("git clone --recursive https://github.com/lvgl/docs.git")
|
||||||
os.chdir("./docs")
|
os.chdir("./docs/v7")
|
||||||
cmd("git co master")
|
cmd("git co master")
|
||||||
|
|
||||||
def docs_get_api():
|
def docs_get_api():
|
||||||
@ -181,7 +182,7 @@ lvgl_commit_push(ver_str)
|
|||||||
docs_clone()
|
docs_clone()
|
||||||
docs_get_api()
|
docs_get_api()
|
||||||
docs_update_version(ver_str)
|
docs_update_version(ver_str)
|
||||||
docs_update_trans()
|
#docs_update_trans() # Zanata is not working now
|
||||||
docs_build()
|
docs_build()
|
||||||
docs_commit_push(ver_str)
|
docs_commit_push(ver_str)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user