Clean.bat 915 B

123456789101112131415161718192021222324252627282930313233343536373839
  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\Wrappers
  10. call :DELINTREE %ROOTDIR%\Source\JpegLib
  11. call :DELINTREE %ROOTDIR%\Source\ZLib
  12. call :DELINTREE %ROOTDIR%\Source\Extensions
  13. call :DELINTREE %ROOTDIR%\Source\Projects
  14. call :DELINDIR %ROOTDIR%\Source
  15. call :DELINDIR %ROOTDIR%\Extras\Extensions
  16. call :DELINTREE %ROOTDIR%\Extras\Demos
  17. call :DELINTREE %ROOTDIR%\Extras\Tools
  18. goto :END
  19. :DELINDIR
  20. pushd %1
  21. echo Processing dir: %1
  22. del /q /f %EXTS% 2>nul 1>nul
  23. popd
  24. goto :EOF
  25. :DELINTREE
  26. pushd %1
  27. echo Processing dir tree: %1
  28. del /q /f /s %EXTS% 2>nul 1>nul
  29. popd
  30. goto :EOF
  31. :END
  32. echo Clean finished