clean_openmpt_args.cmd 477 B

12345678910111213141516171819202122232425262728293031
  1. @echo off
  2. set BATCH_DIR=%~dp0
  3. cd %BATCH_DIR%
  4. cd ..\..
  5. set MY_DIR=%CD%
  6. call "build\auto\setup_arguments.cmd" %1 %2 %3 %4 %5 %6
  7. call "build\auto\setup_%MPT_VS_VER%.cmd"
  8. cd "build\%MPT_VS_WITHTARGET%" || goto error
  9. msbuild OpenMPT%MPT_VS_FLAVOUR%.sln /target:Clean /property:Configuration=%MPT_VS_CONF%;Platform=%MPT_VS_ARCH% /maxcpucount /verbosity:minimal || goto error
  10. cd ..\.. || goto error
  11. goto noerror
  12. :error
  13. cd "%MY_DIR%"
  14. exit 1
  15. :noerror
  16. cd "%MY_DIR%"
  17. exit 0