ruki 2 years ago
parent
commit
b6c1aea72b
1 changed files with 14 additions and 0 deletions
  1. 14 0
      scripts/sync.lua

+ 14 - 0
scripts/sync.lua

@@ -0,0 +1,14 @@
+import("core.base.option")
+
+function main()
+    print("update xmake-repo ..")
+    os.exec("git clone [email protected]:xmake-io/xmake-repo.git -b dev --recurse-submodules")
+    os.cd("xmake-repo")
+    os.exec("git push [email protected]:tboox/xmake-repo.git dev")
+    os.exec("git push [email protected]:tboox/xxmake-repo.git dev")
+    os.exec("git checkout master")
+    os.exec("git merge dev")
+    os.exec("git push [email protected]:xmake-io/xmake-repo.git master")
+    os.exec("git push [email protected]:tboox/xmake-repo.git master")
+    os.exec("git push [email protected]:tboox/xmake-repo.git master")
+end