Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8.1, 0.8.2, and 0.8.3

doc: add build.bat

for windows user without a make program

Changeset fa9cd1cca00f

Parent bb873cca2bab

by Giampaolo Fadel

Changes to one file · Browse files at fa9cd1cca00f Showing diff from parent bb873cca2bab Diff from another changeset...

Change 1 of 1 Show Entire File doc/​Build.bat Stacked
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
@@ -0,0 +1,75 @@
+@echo off + +set hhc_compiler="%ProgramFiles%\HTML Help Workshop\hhc.exe" +set PDFLATEX=PdfLatex +set OUTPUTDIR=build +set SPHINXBUILD=sphinx-build +set ALLSPHINXOPTS=-d %OUTPUTDIR%/doctrees %SPHINXOPTS% source +if NOT "%PAPER%" == "" ( + set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS% +) + +if "%1" == "" goto help + +if "%1" == "help" ( + :help + echo.Please use `make ^<target^>` where ^<target^> is one of + echo. html to make standalone HTML files + echo. htmlhelp to make HTML files and a HTML help project + echo. chm to make CHM file + echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter + echo. pdf to make PDF file, you can set PAPER=a4 or PAPER=letter + goto end +) + +if "%1" == "clean" ( + for /d %%i in (%OUTPUTDIR%\*) do rmdir /q /s %%i + del /q /s %OUTPUTDIR%\* + goto end +) + +if "%1" == "html" ( + %SPHINXBUILD% -b html %ALLSPHINXOPTS% %OUTPUTDIR%/html + echo. + echo.Build finished. The HTML pages are in %OUTPUTDIR%/html. + goto end +) + +if "%1" == "htmlhelp" ( + %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %OUTPUTDIR%/htmlhelp + echo. + echo.Build finished; now you can run HTML Help Workshop with the ^ +.hhp project file in %OUTPUTDIR%/htmlhelp. + goto end +) + +if "%1" == "chm" ( + %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %OUTPUTDIR%/chm + %hhc_compiler% %OUTPUTDIR%/chm/TortoiseHGdoc.hhp + echo. + echo.Build finished. The CHM file is in %OUTPUTDIR%/chm. + goto end +) + +if "%1" == "latex" ( + %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %OUTPUTDIR%/latex + echo. + echo.Build finished; the LaTeX files are in %OUTPUTDIR%/latex. + goto end +) + +if "%1" == "pdf" ( + %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %OUTPUTDIR%/pdf + pushd . + cd %OUTPUTDIR%\pdf + %PDFLATEX% TortoiseHG.tex + popd + echo. + echo.Build finished; the PDF file is in %OUTPUTDIR%/pdf. + goto end +) + +:end + + +