hctclean.cmd 502 B

12345678910111213141516171819202122232425262728293031
  1. @echo off
  2. setlocal
  3. if "%1"=="/?" goto :showhelp
  4. if "%1"=="-?" goto :showhelp
  5. if "%1"=="-help" goto :showhelp
  6. if "%1"=="--help" goto :showhelp
  7. if "%HLSL_BLD_DIR%"=="" (
  8. echo Missing build directory - consider running hctstart.
  9. exit /b 1
  10. )
  11. if exist "%HLSL_BLD_DIR%" (
  12. echo Deleting %HLSL_BLD_DIR% ...
  13. rmdir /q /s %HLSL_BLD_DIR%
  14. if errorlevel 1 (
  15. echo Unable to remove %HLSL_BLD_DIR%.
  16. exit /b 1
  17. )
  18. )
  19. goto :eof
  20. :showhelp
  21. echo Cleans generated files.
  22. echo.
  23. echo hctclean
  24. goto :eof