hctcheckin.cmd 947 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. @echo off
  2. if "%1"=="/?" goto :showhelp
  3. if "%1"=="-?" goto :showhelp
  4. if "%1"=="-help" goto :showhelp
  5. if "%1"=="--help" goto :showhelp
  6. if "%HLSL_SRC_DIR%"=="" (
  7. echo Missing source directory - consider running hctstart.
  8. exit /b 1
  9. )
  10. setlocal ENABLEDELAYEDEXPANSION
  11. echo Running hctcheckin for the current architecture.
  12. call %HLSL_SRC_DIR%\utils\hct\hctclean.cmd
  13. if errorlevel 1 (
  14. echo Failed to clean binaries, stopping hctcheckin.
  15. exit /b 1
  16. )
  17. call %HLSL_SRC_DIR%\utils\hct\hctbuild.cmd
  18. if errorlevel 1 (
  19. echo Failed to build binaries, stopping hctcheckin.
  20. exit /b 1
  21. )
  22. call %HLSL_SRC_DIR%\utils\hct\hcttest.cmd
  23. if errorlevel 1 (
  24. echo Failed to test binaries, stopping hctcheckin.
  25. exit /b 1
  26. )
  27. echo Ready to check in.
  28. cscript //Nologo %HLSL_SRC_DIR%\utils\hct\hctspeak.js /say:"checkin tasks successfully completed"
  29. endlocal
  30. goto :eof
  31. :showhelp
  32. echo Runs the clean, build and test steps.
  33. echo.
  34. echo hctcheckin
  35. echo.
  36. goto :eof