diff --git a/build/win64/build-me.bat b/build/win64/build-me.bat index 2e9ba9f..4cb8374 100644 --- a/build/win64/build-me.bat +++ b/build/win64/build-me.bat @@ -1,4 +1,6 @@ @setlocal +@REM 20170702 - Check branch +@set TMPBR=next @REM 20161002 - Change to msvc140 build @set VCVERS=14 @set GENERATOR=Visual Studio %VCVERS% Win64 @@ -62,6 +64,9 @@ :GOTCMD @call chkmsvc %TMPPRJ% +@call chkbranch %TMPBR% +@if ERRORLEVEL 1 goto BADBR +:GOTBR @echo Begin %DATE% %TIME%, output to %TMPLOG% @echo Begin %DATE% %TIME% >> %TMPLOG% @@ -176,6 +181,16 @@ @if ERRORLEVEL 1 goto ERR33 @goto DNREL +:BADBR +@call git checkout %TMPBR% +@call chkbranch %TMPBR% +@if ERRORLEVEL 1 goto BADBR2 +@goto GOTBR +:BADBR2 +@call shwbranch +@echo Not on correct branch %TMPBR% +@goto ISERR + :ISERR @endlocal @exit /b 1