generateDocs.bat 790 B

123456789101112131415161718192021222324252627282930313233343536
  1. @echo off
  2. setlocal
  3. REM --- Dump the engine docs ---
  4. if not exist "..\..\Torque2D.exe" (
  5. echo.
  6. echo The Torque 2D executable was not found.
  7. echo.
  8. endlocal
  9. exit /b 1
  10. )
  11. if exist "input\docDump.txt" del /Q "input\docDump.txt"
  12. "../../Torque2D.exe" generateDocs.cs
  13. if not exist "input\docDump.txt" (
  14. echo.
  15. echo The Torque 2D documentation was not dumped.
  16. echo.
  17. endlocal
  18. exit /b 1
  19. )
  20. REM --- Build the doxygen docs ---
  21. del /Q "output\html"
  22. svn checkout "https://github.com/GarageGames/Torque2D.git/branches/gh-pages" "output\html"
  23. doxygen.exe scriptReference.Windows.cfg
  24. REM --- Add the newly generated docs to the gh-pages branch
  25. cd "output\html"
  26. svn add *.*
  27. svn commit -m "- Updated reference"
  28. REM --- Build the CHM ---
  29. REM hhc.exe "output\html\index.hhp"
  30. endlocal