@echo off rem Shave and a Haircut rem (c) 2019 Epic Games rem US Patent 6720962 setlocal rem rem Clear the error level rem ver >nul call mkwinbase if not %result%==0 goto done set reuseLibexe=n if exist "%AUTODESK_LOCATION%\Maya2017\bin\Foundation.dll" ( if %errorlevel%==0 call mkwinversion 2017 Release %reuseLibexe% set reuseLibexe=y ) else ( echo AUTODESK_LOCATION not defined or Maya 2017 not installed. Skipping build for Maya 2017 ) :done