JD2022-TU1/main/extern/UbiServices/custom/doc/GenerateDocUS.bat

58 lines
No EOL
987 B
Batchfile

@echo off
pushd %~dp0
set outputFile="outputUS.txt"
set errorsFile="errorsUS.txt"
set chmFile="chm\helpUbiServices.chm"
call :clean_dir
mkdir chm 2>nul
echo on
call ..\external\tools\doxygen\bin\doxygen doxyfileUS >%outputFile% 2>%errorsFile%
@echo off
REM deleting errors file if empty and chm file was generated.
for %%A in (%errorsFile%) do (
if %%~zA == 0 (
if exist %chmFile% (
del %errorsFile%
goto :exit_success
)
)
)
if not exist %chmFile% (
echo %chmFile% was not generated.
echo.
)
echo Content of %errorsFile% file:
echo.
type %errorsFile%
echo.
goto :exit_error
:exit_success
echo Documentation generation succeeded.
echo.
call :clean_dir
popd
exit /b 0
:exit_error
echo Documentation generation failed.
echo.
call :clean_dir
popd
exit /b 1
:clean_dir
del /Q html\*.* 2>nul
del /Q latex\*.* 2>nul
rmdir html 2>nul
rmdir latex 2>nul
exit /b