build-pty4j-libpty.bat: abort if VsDevCmd.bat fails (or doesn't exist)

This commit is contained in:
Ryan Prichard 2016-06-07 18:10:48 -07:00
parent 2d54d78e19
commit 6ebbe4e3cf

View File

@ -4,7 +4,7 @@ setlocal
cd %~dp0..
set Path=C:\Python27;C:\Program Files\Git\cmd;%Path%
call "%VS140COMNTOOLS%\VsDevCmd.bat"
call "%VS140COMNTOOLS%\VsDevCmd.bat" || goto :fail
rmdir /s/q build-libpty 2>NUL
mkdir build-libpty\win