_clean.cmd 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @echo off delete exe and res file
  2. del *.exe /s
  3. del *.scr /s
  4. del *.xml /s
  5. rem del *.res /s
  6. @echo off delete delphi units but not packages
  7. del *.dcu /s
  8. del *.bak /s
  9. del *.bpl /s
  10. del *.dcp /s
  11. del *.rsm /s
  12. @echo off not delete C++ includes and libs
  13. del *.hpp /s
  14. del *.bpi /s
  15. del *.lib /s
  16. del *.a /s
  17. @echo off delete debug files
  18. del *.ddp /s
  19. del *.ppu /s
  20. del *.o /s
  21. del *.~* /s
  22. del *.log /s
  23. del *.dsk /s
  24. del *.dof /s
  25. del *.bk? /s
  26. del *.mps /s
  27. del *.rst /s
  28. del *.s /s
  29. del *.map /s
  30. del *.drc /s
  31. del *.local /s
  32. del *.dsv /s
  33. @echo off delete more rad studio files
  34. del *.identcache /s
  35. del *.otares /s
  36. del *.tvsconfig /s
  37. del *.stat /s
  38. del *.db /s
  39. @echo off delete more cpp builder files
  40. del *.#00 /s
  41. del *.pch /s
  42. del *.tds /s
  43. del *.ilc /s
  44. del *.ild /s
  45. del *.ilf /s
  46. del *.ils /s
  47. del *.pdi /s
  48. del *.vlb /s
  49. echo ************************************************
  50. echo Don't delete some files
  51. echo ************************************************
  52. attrib +R "AdvDemos/Q3Demo/Model/animation.cfg"
  53. rem del *.cfg /s - there are quake's animations in assets
  54. attrib -R "AdvDemos/Q3Demo/Model/animation.cfg"
  55. echo---------------------------------------------------------
  56. rem echo delete all .git directories with subdirectories and files
  57. rem for /r %1 %%R in (.git) do if exist "%%R" (rd /s /q "%%R")
  58. echo---------------------------------------------------------
  59. echo delete debug and Platform directories with all subdirectories and files
  60. rem for /r %1 %%R in (Win32) do if exist "%%R" (rd /s /q "%%R")
  61. rem for /r %1 %%R in (Win64) do if exist "%%R" (rd /s /q "%%R")
  62. rem for /r %1 %%R in (Win64x) do if exist "%%R" (rd /s /q "%%R")
  63. for /r %1 %%R in (Debug_Build) do if exist "%%R" (rd /s /q "%%R")
  64. for /r %1 %%R in (Debug) do if exist "%%R" (rd /s /q "%%R")
  65. for /r %1 %%R in (Release_Build) do if exist "%%R" (rd /s /q "%%R")
  66. for /r %1 %%R in (Release) do if exist "%%R" (rd /s /q "%%R")
  67. for /r %1 %%R in (__history) do if exist "%%R" (rd /s /q "%%R")
  68. for /r %1 %%R in (__recovery) do if exist "%%R" (rd /s /q "%%R")
  69. for /r %1 %%R in (__astcache) do if exist "%%R" (rd /s /q "%%R")