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
|
@ECHO OFF
set DOXYGEN=doxygen
for /f "delims=" %%i in ('where doxygen') do set DOXYGEN=%%i
set PERL=perl
for /f "delims=" %%i in ('where perl') do set PERL=%%i
set HAVE_DOT=dot
for /f "delims=" %%i in ('where dot') do set HAVE_DOT=%%i
@REM echo DOXYGEN : %DOXYGEN%
@REM echo PERL : %PERL%
@REM echo HAVE_DOT : %HAVE_DOT%
if "%1" == "" (
call :all
goto end
)
if "%1" == "all" (
call :all
goto end
)
if "%1" == "clean" (
call :clean
goto end
)
goto end
:all
call :doxygen tinyxml.cfg
goto end
:clean
call :rmdir tinyxml
goto end
:doxygen
set CFG=%~1
echo Running doxygen: %CFG%
"%DOXYGEN%" %CFG%
goto end
:rmdir
set DIR=%~1
if exist "%DIR%" (
echo Removing directory: %DIR%
rmdir /s/q "%DIR%"
)
goto end
:end
|