From 8d8a5913f420a67204ec7ae6591e5ac8d4755704 Mon Sep 17 00:00:00 2001 From: Bottersnike Date: Thu, 3 Feb 2022 21:13:20 +0000 Subject: [PATCH] Initial commit --- .gitmodules | 15 +++++++++++++++ all.cmd | 10 ++++++++++ commit.cmd | 12 ++++++++++++ docs | 1 + eaapi | 1 + proxy | 1 + server-dummy | 1 + server-full | 1 + setup.cmd | 14 ++++++++++++++ test.cmd | 10 ++++++++++ 10 files changed, 66 insertions(+) create mode 100644 .gitmodules create mode 100644 all.cmd create mode 100644 commit.cmd create mode 160000 docs create mode 160000 eaapi create mode 160000 proxy create mode 160000 server-dummy create mode 160000 server-full create mode 100644 setup.cmd create mode 100644 test.cmd diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..55041c1 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,15 @@ +[submodule "docs"] + path = docs + url = https://gitea.tendokyu.moe/eamuse/docs.git +[submodule "eaapi"] + path = eaapi + url = https://gitea.tendokyu.moe/eamuse/eaapi.git +[submodule "server-full"] + path = server-full + url = https://gitea.tendokyu.moe/eamuse/server-full.git +[submodule "proxy"] + path = proxy + url = https://gitea.tendokyu.moe/eamuse/proxy.git +[submodule "server-dummy"] + path = server-dummy + url = https://gitea.tendokyu.moe/eamuse/server-dummy.git diff --git a/all.cmd b/all.cmd new file mode 100644 index 0000000..52ea494 --- /dev/null +++ b/all.cmd @@ -0,0 +1,10 @@ +@echo off + +for /D %%G in (%CD%\*) do if exist %%G\.git ( + cd %%G + echo ================================================================ + echo %%G + echo ================================================================ + git %* + cd .. +) diff --git a/commit.cmd b/commit.cmd new file mode 100644 index 0000000..8ed3ae5 --- /dev/null +++ b/commit.cmd @@ -0,0 +1,12 @@ +@echo off + +for /D %%G in (%CD%\*) do if exist %%G\.git ( + cd %%G + set RESULT= + for /f %%i in ('git status -s') do (set RESULT=%%i) + if defined RESULT ( + git add %* + git commit %* + ) + cd .. +) diff --git a/docs b/docs new file mode 160000 index 0000000..0daa10b --- /dev/null +++ b/docs @@ -0,0 +1 @@ +Subproject commit 0daa10b01d5b0177adb85af2644ef5eb03d522ec diff --git a/eaapi b/eaapi new file mode 160000 index 0000000..e8ccee4 --- /dev/null +++ b/eaapi @@ -0,0 +1 @@ +Subproject commit e8ccee4a104962d2b8294ffb322b0ae33c6691a9 diff --git a/proxy b/proxy new file mode 160000 index 0000000..e86933c --- /dev/null +++ b/proxy @@ -0,0 +1 @@ +Subproject commit e86933c3156461147f682c1917c58631436f49f2 diff --git a/server-dummy b/server-dummy new file mode 160000 index 0000000..6e0a6f7 --- /dev/null +++ b/server-dummy @@ -0,0 +1 @@ +Subproject commit 6e0a6f7db88bdfd13b60f724585006f81aa6f8ea diff --git a/server-full b/server-full new file mode 160000 index 0000000..98a4b36 --- /dev/null +++ b/server-full @@ -0,0 +1 @@ +Subproject commit 98a4b36a613cb4d8d42a35e4d1285ce02ae52cfc diff --git a/setup.cmd b/setup.cmd new file mode 100644 index 0000000..4aec320 --- /dev/null +++ b/setup.cmd @@ -0,0 +1,14 @@ +@echo off + +rem Doing this individually means we can just skip over any that error +git submodule init docs +git submodule init eaapi +git submodule init proxy +git submodule init server-dummy +git submodule init server-full + +for /D %%G in (%CD%\*) do if exist %%G\requirements.txt ( + py -m pip install -r %%G\requirements.txt +) + +py -m pip install -e eaapi diff --git a/test.cmd b/test.cmd new file mode 100644 index 0000000..d77fea4 --- /dev/null +++ b/test.cmd @@ -0,0 +1,10 @@ +@echo off + +for /D %%G in (%CD%\*) do if exist %%G\tests ( + cd %%G + echo ================================================================ + echo %%G + echo ================================================================ + py -m unittest + cd .. +)