forked from bitdefender/hvmi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake_doxy.cmd
More file actions
30 lines (23 loc) · 774 Bytes
/
Copy pathmake_doxy.cmd
File metadata and controls
30 lines (23 loc) · 774 Bytes
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
@echo off
setlocal
call :setESC
set error_file="doxy_err.log"
doxygen Doxygen/Doxyfile 2> %error_file%
FOR /F "usebackq" %%A IN ('%error_file%') DO set size=%%~zA
if %size% == 0 (
echo %ESC%[101;42m %ESC%[0m
echo %ESC%[101;42m Doxy generation SUCCEEDED %ESC%[0m
echo %ESC%[101;42m %ESC%[0m
) ELSE (
echo %ESC%[101;93m %ESC%[0m
echo %ESC%[101;93m Doxy generation FAILED with the following errors %ESC%[0m
echo %ESC%[101;93m %ESC%[0m
more %error_file%
)
del %error_file%
:setESC
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (
set ESC=%%b
exit /B 0
)
exit /B 0