Clean.bat 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 *.stat
  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 :DELINDIR %ROOTDIR%\Extras\Extensions\LibTiff
  18. call :DELINTREE %ROOTDIR%\Extras\Demos
  19. call :DELINTREE %ROOTDIR%\Extras\Tools
  20. call :DELINTREE %ROOTDIR%\Extras\Contrib
  21. goto :END
  22. :DELINDIR
  23. pushd %1
  24. echo Processing dir: %1
  25. del /q /f %EXTS% 2>nul 1>nul
  26. popd
  27. goto :EOF
  28. :DELINTREE
  29. pushd %1
  30. echo Processing dir tree: %1
  31. del /q /f /s %EXTS% 2>nul 1>nul
  32. popd
  33. goto :EOF
  34. :END
  35. echo Clean finished