-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgenerate-doc.bat
74 lines (61 loc) · 2.69 KB
/
generate-doc.bat
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
@ECHO OFF
REM generate-doc.bat
REM
REM Copyright (c) 2020-2022 RHEA System S.A.
REM
REM Author: Sam Gerené, Alex Vorobiev, Nathanael Smiechowski, Théate Antoine
REM
REM This file is part of DEHP CommonJ Library
REM
REM The DEHPCommonJ is free software; you can redistribute it and/or
REM modify it under the terms of the GNU Lesser General Public
REM License as published by the Free Software Foundation; either
REM version 3 of the License, or (at your option) any later version.
REM
REM The DEHPCommonJ is distributed in the hope that it will be useful,
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
REM Lesser General Public License for more details.
REM
REM You should have received a copy of the GNU Lesser General Public License
REM along with this program; if not, write to the Free Software Foundation,
REM Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
set QuietMode="-q"
set DOXYGEN_GENERATE_LATEX=NO
set CurrentDir=%cd%
set ZipFileName="doxygen_html_documentation.zip"
:ParseArgs
if "%1"=="" goto :ParsingEnded
if /I "%1" == "-v" set QuietMode=
if /I "%1" == "-p" set DOXYGEN_GENERATE_LATEX=YES
if /I "%1" == "-h" goto :Help
shift
goto :ParseArgs
:Help
echo ^=======================================================================================================
echo ^= Generate the HTML documentation for the DEH-Common Library =
echo ^= =
echo ^= --Arguments-- =
echo ^= \-h ===^> Shows this menu =
echo ^= \-v ===^> Runs the script on verbose mode =
echo ^= \-p ===^> Generate the PDF Documentation. LaTeX has to be installed to fully perform =
echo ^=======================================================================================================
goto :ExitStatement
:ParsingEnded
echo HTML Documentation generation started...
doxygen %QuietMode% DEH-CommonJ-doxygen
if not "%ERRORLEVEL%"=="0" goto :ExitStatement
del %ZipFileName% 2> nul
cd doc/html
zip -r ../../%ZipFileName% * %QuietMode%
cd "%CurrentDir%"
if %DOXYGEN_GENERATE_LATEX%==NO goto :ExitStatement
echo Generating PDF Starting...
if %QuietMode%=="-q" goto :SilentMakeFile else goto :NotSilentMakeFile
:NotSilentMakeFile
call doc/latex/make.bat
:SilentMakeFile
call doc/latex/make.bat > nul
:ExitStatement
cd "%CurrentDir%"
echo generate-doc.bat is done