Skip to content

Commit

Permalink
build.bat: Use better submodule cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
Wohlstand committed Mar 9, 2020
1 parent d1bf3ab commit 7b6ec67
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions build.bat
Expand Up @@ -226,21 +226,9 @@ rem ------------------------------------------------------------
rem ------------------------------------------------------------

:repairSubModules
rem !!FIXME!! Implement parsing of submodules list and fill this array automatically
rem NOTE: Don't use "git submodule foreach" because broken submodule will not shown in it's list!
set SUBMODULES=_Libs\FreeImage
set SUBMODULES=%SUBMODULES% _Libs\sqlite3
set SUBMODULES=%SUBMODULES% _Libs\AudioCodecs
set SUBMODULES=%SUBMODULES% _Libs\SDL_Mixer_X
set SUBMODULES=%SUBMODULES% _common\PGE_File_Formats
set SUBMODULES=%SUBMODULES% _common\PgeGameSave\submodule
set SUBMODULES=%SUBMODULES% Content\help
rem \===============================================================================
for %%s in (%SUBMODULES%) do (
echo Remove folder %%s ...
if exist %%s\nul rd /Q /S %%s
)
echo Fetching new submodules...
echo === Cleaning-up old state...
git submodule foreach 'pwd; rm -Rf * .git*;'
echo === Fetching new submodules...
git submodule init
git submodule update
echo.
Expand Down

0 comments on commit 7b6ec67

Please sign in to comment.