Clean.bat 972 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. @echo OFF
  2. echo Deleting ugly files...
  3. set ROOTDIR=..
  4. set EXTS=*.dcu *.ppu *.a *.dpu *.o *.rst *.bak *.bk? *.~* *.*~ *.or *.obj
  5. set EXTS=%EXTS% *.tgs *.tgw *.identcache *.local
  6. del /q /f %ROOTDIR%\Demos\Bin\_BenchOut.* 2>nul 1>nul
  7. call :DELINTREE %ROOTDIR%\Bin
  8. call :DELINTREE %ROOTDIR%\Demos
  9. call :DELINTREE %ROOTDIR%\Scripts
  10. call :DELINTREE %ROOTDIR%\Source\Wrappers
  11. call :DELINTREE %ROOTDIR%\Source\JpegLib
  12. call :DELINTREE %ROOTDIR%\Source\ZLib
  13. call :DELINTREE %ROOTDIR%\Source\Extensions
  14. call :DELINTREE %ROOTDIR%\Source\Projects
  15. call :DELINDIR %ROOTDIR%\Source
  16. call :DELINDIR %ROOTDIR%\Extras\Extensions
  17. call :DELINTREE %ROOTDIR%\Extras\Demos
  18. call :DELINTREE %ROOTDIR%\Extras\Tools
  19. goto :END
  20. :DELINDIR
  21. pushd %1
  22. echo Processing dir: %1
  23. del /q /f %EXTS% 2>nul 1>nul
  24. popd
  25. goto :EOF
  26. :DELINTREE
  27. pushd %1
  28. echo Processing dir tree: %1
  29. del /q /f /s %EXTS% 2>nul 1>nul
  30. popd
  31. goto :EOF
  32. :END
  33. echo Clean finished