make.bat 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. REM Copyright (c) 2011 - 2013 Stefano Mazzucco <stefano -at- curso.re>
  2. REM All rights reserved.
  3. REM .
  4. REM This file is part of Crystal Ball Plus.
  5. REM .
  6. REM Crystal Ball Plus is free software: you can redistribute it and/or modify
  7. REM it under the terms of the GNU General Public License as published by
  8. REM the Free Software Foundation, either version 3 of the License, or
  9. REM (at your option) any later version.
  10. REM .
  11. REM Crystal Ball Plus is distributed in the hope that it will be useful,
  12. REM but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. REM GNU General Public License for more details.
  15. REM .
  16. REM You should have received a copy of the GNU General Public License
  17. REM along with Crystal Ball Plus. If not, see <http://www.gnu.org/licenses/>.
  18. @ECHO OFF
  19. REM Command file for Sphinx documentation
  20. set SPHINXBUILD=sphinx-build
  21. set BUILDDIR=_build
  22. set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
  23. if NOT "%PAPER%" == "" (
  24. set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
  25. )
  26. if "%1" == "" goto help
  27. if "%1" == "help" (
  28. :help
  29. echo.Please use `make ^<target^>` where ^<target^> is one of
  30. echo. html to make standalone HTML files
  31. echo. dirhtml to make HTML files named index.html in directories
  32. echo. pickle to make pickle files
  33. echo. json to make JSON files
  34. echo. htmlhelp to make HTML files and a HTML help project
  35. echo. qthelp to make HTML files and a qthelp project
  36. echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
  37. echo. changes to make an overview over all changed/added/deprecated items
  38. echo. linkcheck to check all external links for integrity
  39. echo. doctest to run all doctests embedded in the documentation if enabled
  40. goto end
  41. )
  42. if "%1" == "clean" (
  43. for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
  44. del /q /s %BUILDDIR%\*
  45. goto end
  46. )
  47. if "%1" == "html" (
  48. %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
  49. echo.
  50. echo.Build finished. The HTML pages are in %BUILDDIR%/html.
  51. goto end
  52. )
  53. if "%1" == "dirhtml" (
  54. %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
  55. echo.
  56. echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
  57. goto end
  58. )
  59. if "%1" == "pickle" (
  60. %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
  61. echo.
  62. echo.Build finished; now you can process the pickle files.
  63. goto end
  64. )
  65. if "%1" == "json" (
  66. %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
  67. echo.
  68. echo.Build finished; now you can process the JSON files.
  69. goto end
  70. )
  71. if "%1" == "htmlhelp" (
  72. %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
  73. echo.
  74. echo.Build finished; now you can run HTML Help Workshop with the ^
  75. .hhp project file in %BUILDDIR%/htmlhelp.
  76. goto end
  77. )
  78. if "%1" == "qthelp" (
  79. %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
  80. echo.
  81. echo.Build finished; now you can run "qcollectiongenerator" with the ^
  82. .qhcp project file in %BUILDDIR%/qthelp, like this:
  83. echo.^> qcollectiongenerator %BUILDDIR%\qthelp\NISTCrystalBall.qhcp
  84. echo.To view the help file:
  85. echo.^> assistant -collectionFile %BUILDDIR%\qthelp\NISTCrystalBall.ghc
  86. goto end
  87. )
  88. if "%1" == "latex" (
  89. %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
  90. echo.
  91. echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
  92. goto end
  93. )
  94. if "%1" == "changes" (
  95. %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
  96. echo.
  97. echo.The overview file is in %BUILDDIR%/changes.
  98. goto end
  99. )
  100. if "%1" == "linkcheck" (
  101. %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
  102. echo.
  103. echo.Link check complete; look for any errors in the above output ^
  104. or in %BUILDDIR%/linkcheck/output.txt.
  105. goto end
  106. )
  107. if "%1" == "doctest" (
  108. %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
  109. echo.
  110. echo.Testing of doctests in the sources finished, look at the ^
  111. results in %BUILDDIR%/doctest/output.txt.
  112. goto end
  113. )
  114. :end