CleanAll.bat 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @echo This batch file requires a powerful XDELETE program. One
  2. @echo that will REMOVE whole directories recursively ...
  3. @echo If you do NOT have such a program, then abort now, and
  4. @echo adjust the line below ...
  5. @set TEMPX=xdelete -dfrm
  6. @echo set TEMPX=%TEMPX%
  7. @pause
  8. @echo #####################################################
  9. @echo ARE YOU SURE YOU WANT TO DO THIS? Ctrl+C to abort ...
  10. @echo #####################################################
  11. @pause
  12. @echo CleanAll: Last chance ... ctrl+c to abort ...
  13. @pause
  14. @echo CleanAll: Cleaning the headers ...
  15. call CleanWin32
  16. @echo CleanAll: and removing the SOLUTION files ...
  17. call delsln
  18. @echo CleanAll: Cleaning the gennmtab generated header ...
  19. @if EXIST ..\lib\expat\xmltok\nametab.h del ..\lib\expat\xmltok\nametab.h > nul
  20. @echo CleanAll: Cleaning all built binaries ...
  21. @if EXIST ..\bin\*.exe del ..\bin\*.exe > nul
  22. @if EXIST ..\bin\*.exp del ..\bin\*.exp > nul
  23. @if EXIST ..\bin\*.ilk del ..\bin\*.ilk > nul
  24. @if EXIST ..\bin\*.lib del ..\bin\*.lib > nul
  25. @if EXIST ..\lib\*.lib del ..\lib\*.lib > nul
  26. @if EXIST ..\lib\*.dll del ..\lib\*.dll > nul
  27. @echo CleanAll: Cleaning test data files ...
  28. @if EXIST ..\bin\data\*.xml del ..\bin\data\*.xml > nul
  29. @if EXIST ..\bin\data\. rd ..\bin\data > nul
  30. @if EXIST ..\bin\. rd ..\bin > nul
  31. @echo CleanAll: Cleaning old residual built binaries ... but none should exist ...
  32. @if EXIST ..\lib\expat\gennmtab\Debug\. %TEMPX% ..\lib\expat\gennmtab\Debug
  33. @if EXIST ..\lib\expat\gennmtab\Release\. %TEMPX% ..\lib\expat\gennmtab\Release
  34. @if EXIST ..\lib\expat\xmlparse\Debug\. %TEMPX% ..\lib\expat\xmlparse\Debug
  35. @if EXIST ..\lib\expat\xmlparse\DebugDLL\. %TEMPX% ..\lib\expat\xmlparse\DebugDLL
  36. @if EXIST ..\lib\expat\xmlparse\Release\. %TEMPX% ..\lib\expat\xmlparse\Release
  37. @if EXIST ..\lib\expat\xmlparse\ReleaseDLL\. %TEMPX% ..\lib\expat\xmlparse\ReleaseDLL
  38. @if EXIST ..\lib\expat\xmlparse\ReleaseMinSizeDLL\. %TEMPX% ..\lib\expat\xmlparse\ReleaseMinSizeDLL
  39. @if EXIST ..\lib\expat\xmltok\Debug\. %TEMPX% ..\lib\expat\xmltok\Debug
  40. @if EXIST ..\lib\expat\xmltok\DebugDLL\. %TEMPX% ..\lib\expat\xmltok\DebugDLL
  41. @if EXIST ..\lib\expat\xmltok\Release\. %TEMPX% ..\lib\expat\xmltok\Release
  42. @if EXIST ..\lib\expat\xmltok\ReleaseDLL\. %TEMPX% ..\lib\expat\xmltok\ReleaseDLL
  43. @echo CleanAll: Finally, cleaning the main intermediate directories ...
  44. @if EXIST Debug\. %TEMPX% Debug
  45. @if EXIST Release\. %TEMPX% Release
  46. @echo .
  47. @echo CleanAll: Phew ... all done ...
  48. @echo .