This commit is contained in:
taynpg 2024-12-24 21:10:20 +08:00
parent de204b5820
commit e71fab475a
2 changed files with 45 additions and 35 deletions

View File

@ -1,32 +1,42 @@
backup_repo taynpg/tryreg
how-to-use taynpg/how-to-use
comprecpp taynpg/transm
useopencv4 taynpg/ofen
OneLevelXmlOpr taynpg/resource
SerialOpr taynpg/wxqm
notegit yun/yqm
ImguiDemo taynpg/mail-cpp
how-to-use taynpg/PackBinary
quickcpp semi/GenAlarm
auxiliarytool taynpg/cmt
wxwidgetstudy yun/LinuxPack
resource taynpg/msync
nettrans yun/cqm
tinyserial yun/yx
sxtwl_cpp yun/nvim
xv6-riscv yun/mail-send
useopencv4 yun/useopencv4
mskip-list semi/OneLevelXmlOpr
cqm taynpg/swconfig
ftptrans taynpg/wezterm
nvim taynpg/SockGrab
xiaoyunserver taynpg/work
yx taynpg/script
packqt taynpg/rsync-task
muduo taynpg/nettrans
open-cmd-here taynpg/codecreate
swconfig taynpg/backup_repo
vsgene taynpg/open-cmd-here
yqm taynpg/packqt
dlldepend taynpg/comprecpp
sxcalendar taynpg/wxwidgetstudy
taynpg/auxiliarytool
taynpg/vsgene
taynpg/dlldepend
taynpg/sxcalendar
taynpg/cpp_util
taynpg/muduo
taynpg/mskip-list
taynpg/ftptrans
taynpg/sxtwl_cpp
taynpg/SerialOpr

6
run.py
View File

@ -1,6 +1,6 @@
import os import os
url = "https://gitee.com/sinxmiao/" url = "https://www.sinxmiao.cn/"
backup_name = "gitea_backup" backup_name = "gitea_backup"
current_path = os.getcwd() current_path = os.getcwd()
@ -27,9 +27,9 @@ for repo in content:
purpose_dir = os.path.join(backup_path, repo_name) purpose_dir = os.path.join(backup_path, repo_name)
if not os.path.exists(purpose_dir): if not os.path.exists(purpose_dir):
os.makedirs(purpose_dir) os.makedirs(purpose_dir)
cmd = "git clone " + url + repo_name + ".git" cmd = "git clone --recursive " + url + repo_name + ".git"
cmd = cmd + " \"" + purpose_dir + "\"" cmd = cmd + " \"" + purpose_dir + "\""
else: else:
cmd = "cd /d \"" + purpose_dir + "\" && git pull" cmd = "cd /d \"" + purpose_dir + "\" && git pull && git submodule update"
print(cmd) print(cmd)
os.system(cmd) os.system(cmd)