forked from Azure/iot-edge-v1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgen_docs.cmd
69 lines (59 loc) · 2.52 KB
/
gen_docs.cmd
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
@REM Copyright (c) Microsoft. All rights reserved.
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
@setlocal EnableExtensions EnableDelayedExpansion
@echo off
set build-root=%~dp0..
cd %build-root%\tools\docs
rem -----------------------------------------------------------------------------
rem -- Check for environment pre-requisites. This script requires
rem -- that the following programs work:
rem -- doxygen
rem -----------------------------------------------------------------------------
call :checkExists git
if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
call :checkExists node
if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
call :checkExists npm
if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
call :checkExists doxygen
if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
call :checkExists mvn
if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
call :checkExists javadoc
if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
call :checkExists jsdoc
if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
rem -----------------------------------------------------------------------------
rem -- Generate C API docs
rem -----------------------------------------------------------------------------
echo Generating C API docs
call gen_cdocs.cmd
rem -----------------------------------------------------------------------------
rem -- Generate .NET API docs
rem -----------------------------------------------------------------------------
echo Generating .NET API docs
call gen_dotnetdocs.cmd
rem -----------------------------------------------------------------------------
rem -- Generate Java API docs
rem -----------------------------------------------------------------------------
echo Generating Java API docs
call gen_javadocs.cmd
rem -----------------------------------------------------------------------------
rem -- Generate Node.js API docs
rem -----------------------------------------------------------------------------
echo Generating Node.js API docs
call gen_jsdocs.cmd
rem -----------------------------------------------------------------------------
rem -- done
rem -----------------------------------------------------------------------------
goto :eof
rem -----------------------------------------------------------------------------
rem -- helper subroutines
rem -----------------------------------------------------------------------------
:checkExists
where %~1 >nul 2>nul
if not !ERRORLEVEL!==0 (
echo "%~1" not found. Please make sure that "%~1" is installed and available in the path.
exit /b !ERRORLEVEL!
)
goto :eof