From 635930c61c6b08e17e9c03b9ff8d2d3be1f47da8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Ko=C5=BEelj?= Date: Fri, 3 Mar 2023 10:57:26 +0100 Subject: [PATCH] Add default dependency init script --- build/init.bat | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 build/init.bat diff --git a/build/init.bat b/build/init.bat new file mode 100644 index 0000000..560febd --- /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