From 10a324dcb43079e04dece129090c5e082de2362a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Ko=C5=BEelj?= Date: Wed, 1 Mar 2023 16:08:20 +0100 Subject: [PATCH] Update submodule branches Add submodule init script --- .gitmodules | 2 ++ build/init.bat | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 build/init.bat diff --git a/.gitmodules b/.gitmodules index 89ea642..269a36e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,8 @@ [submodule "dependencies/Connected"] path = dependencies/Connected url = https://git.tompit.com/Connected/Connected.git + branch = develop [submodule "dependencies/Connected.Framework"] path = dependencies/Connected.Framework url = https://git.tompit.com/Connected/Connected.Framework.git + branch = develop diff --git a/build/init.bat b/build/init.bat new file mode 100644 index 0000000..017ad52 --- /dev/null +++ b/build/init.bat @@ -0,0 +1,22 @@ +@echo off + +SET root=%cd% + +echo "Syncing submodules" +git submodule sync +git submodule update --init --remote +echo "Submodules up to date" + +FOR /F "delims=" %%a IN ('DIR "../dependencies" /A:d /B') DO ( + echo Handling %%a + cd ../dependencies/%%a/build + echo %cd% + IF EXIST init.bat ( + echo "found init.bat" + call init + ) + cd %root% +) + +cd ../ +dotnet build \ No newline at end of file