From 949662a7b933f2e186587a46de29042e54a7d3f4 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 28 Aug 2018 14:31:08 -0700 Subject: [PATCH] Visual Studio Projects: Auto migrate zip expanded windows-build to git When git is available, remove manual steps to maintain and update the windows-build support even for cases where windows-build may have previously extracted from a downloaded zip file. --- Visual Studio Projects/Pre-Build-Event.cmd | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Visual Studio Projects/Pre-Build-Event.cmd b/Visual Studio Projects/Pre-Build-Event.cmd index 94f1f656..15542ed1 100644 --- a/Visual Studio Projects/Pre-Build-Event.cmd +++ b/Visual Studio Projects/Pre-Build-Event.cmd @@ -208,6 +208,7 @@ echo ** This may take a minute or si. Please wait... ** echo ** ** echo ***************************************************** echo ***************************************************** +:_try_clone pushd ..\.. "%_GIT_GIT%" clone https://github.com/simh/windows-build windows-build popd @@ -224,7 +225,24 @@ goto _ProjectInfo :_notice2 if "%_TRIED_PULL%" neq "" goto _notice2_announce if "%_GIT_GIT%" equ "" goto _notice2_announce -if not exist ..\..\windows-build\.git goto _notice2_announce +if exist ..\..\windows-build\.git goto _try_pull +echo ***************************************************** +echo ***************************************************** +echo ** ** +echo ** The required build support is out of date ** +echo ** and currently isn't a git repository. ** +echo ** ** +echo ** Removing the current windows-build support ** +echo ** in preparation for cloning the current ** +echo ** windows-build git repository. ** +echo ** ** +echo ** This may take several minutes... ** +echo ** ** +echo ***************************************************** +echo ***************************************************** +rmdir /s /q ..\..\windows-build +goto _try_clone +:_try_pull echo ***************************************************** echo ***************************************************** echo ** **