Debian Codegraph @

examples/tinyxml/make.bat

raw
1 @ECHO OFF
2
3 set DOXYGEN=doxygen
4 for /f "delims=" %%i in ('where doxygen') do set DOXYGEN=%%i
5
6 set PERL=perl
7 for /f "delims=" %%i in ('where perl') do set PERL=%%i
8
9 set HAVE_DOT=dot
10 for /f "delims=" %%i in ('where dot') do set HAVE_DOT=%%i
11
12 @REM echo DOXYGEN : %DOXYGEN%
13 @REM echo PERL : %PERL%
14 @REM echo HAVE_DOT : %HAVE_DOT%
15
16 if "%1" == "" (
17 call :all
18 goto end
19 )
20
21 if "%1" == "all" (
22 call :all
23 goto end
24 )
25
26 if "%1" == "clean" (
27 call :clean
28 goto end
29 )
30
31 goto end
32
33 :all
34 call :doxygen tinyxml.cfg
35 goto end
36
37 :clean
38 call :rmdir tinyxml
39 goto end
40
41 :doxygen
42 set CFG=%~1
43 echo Running doxygen: %CFG%
44 "%DOXYGEN%" %CFG%
45 goto end
46
47 :rmdir
48 set DIR=%~1
49 if exist "%DIR%" (
50 echo Removing directory: %DIR%
51 rmdir /s/q "%DIR%"
52 )
53 goto end
54
55 :end