From 4173cdb98932b2c9a3543b4144e6f6b1d53e6044 Mon Sep 17 00:00:00 2001 From: Bottersnike Date: Thu, 3 Feb 2022 21:17:27 +0000 Subject: [PATCH] Smarter setup --- commit.cmd | 6 ++++++ setup.cmd | 8 +++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/commit.cmd b/commit.cmd index 8ed3ae5..1f16603 100644 --- a/commit.cmd +++ b/commit.cmd @@ -7,6 +7,12 @@ for /D %%G in (%CD%\*) do if exist %%G\.git ( if defined RESULT ( git add %* git commit %* + set ANY=1 ) cd .. ) + +if defined ANY ( + git add . + git commit %* +) diff --git a/setup.cmd b/setup.cmd index 4aec320..e072264 100644 --- a/setup.cmd +++ b/setup.cmd @@ -1,11 +1,9 @@ @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 ( + git submodule update %%~nG +) for /D %%G in (%CD%\*) do if exist %%G\requirements.txt ( py -m pip install -r %%G\requirements.txt