Clean.bat 831 B

12345678910111213141516171819202122232425262728293031323334353637
  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. call :DELINTREE %ROOTDIR%\Bin
  7. call :DELINTREE %ROOTDIR%\Demos
  8. call :DELINTREE %ROOTDIR%\Scripts
  9. call :DELINTREE %ROOTDIR%\Source\Tools
  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. goto :END
  17. :DELINDIR
  18. pushd %1
  19. echo Processing dir: %1
  20. del /q /f %EXTS% 2>nul 1>nul
  21. popd
  22. goto :EOF
  23. :DELINTREE
  24. pushd %1
  25. echo Processing dir tree: %1
  26. del /q /f /s %EXTS% 2>nul 1>nul
  27. popd
  28. goto :EOF
  29. :END
  30. echo Clean finished