@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%\Maya2018\bin\Foundation.dll" ( if %errorlevel%==0 call mkwinversion 2018 Release %reuseLibexe% set reuseLibexe=y ) else ( echo AUTODESK_LOCATION not defined or Maya 2018 not installed. Skipping build for Maya 2018 ) :done