Convert docs/doxygen/regent.bat to DOS EOLs

Very partial backport of 3c59f46b64 from master.
This commit is contained in:
Vadim Zeitlin
2016-11-17 14:49:18 +01:00
parent 553ec7537c
commit 38ffc910b2

View File

@@ -1,105 +1,105 @@
@echo off @echo off
REM This bash script regenerates the HTML doxygen version of the REM This bash script regenerates the HTML doxygen version of the
REM wxWidgets manual and adjusts the doxygen log to make it more REM wxWidgets manual and adjusts the doxygen log to make it more
REM readable. REM readable.
mkdir out 2>&1 >NUL mkdir out 2>&1 >NUL
mkdir out\html 2>&1 >NUL mkdir out\html 2>&1 >NUL
mkdir out\html\generic 2>&1 >NUL mkdir out\html\generic 2>&1 >NUL
REM These not automatically copied by Doxygen because they're not REM These not automatically copied by Doxygen because they're not
REM used in doxygen documentation, only in our html footer and by our REM used in doxygen documentation, only in our html footer and by our
REM custom aliases REM custom aliases
copy images\generic\*.png out\html\generic 2>&1 >NUL copy images\generic\*.png out\html\generic 2>&1 >NUL
pushd ..\.. pushd ..\..
set WXWIDGETS=%CD% set WXWIDGETS=%CD%
popd popd
REM Defaults for settings controlled by this script REM Defaults for settings controlled by this script
set GENERATE_DOCSET=NO set GENERATE_DOCSET=NO
set GENERATE_HTML=NO set GENERATE_HTML=NO
set GENERATE_HTMLHELP=NO set GENERATE_HTMLHELP=NO
set GENERATE_LATEX=NO set GENERATE_LATEX=NO
set GENERATE_QHP=NO set GENERATE_QHP=NO
set GENERATE_XML=NO set GENERATE_XML=NO
set SEARCHENGINE=NO set SEARCHENGINE=NO
set SERVER_BASED_SEARCH=NO set SERVER_BASED_SEARCH=NO
IF "%1" == "all" ( IF "%1" == "all" (
set GENERATE_HTML=YES set GENERATE_HTML=YES
set GENERATE_HTMLHELP=YES set GENERATE_HTMLHELP=YES
set GENERATE_XML=YES set GENERATE_XML=YES
) ELSE ( ) ELSE (
IF "%1" == "chm" ( IF "%1" == "chm" (
set GENERATE_HTML=YES set GENERATE_HTML=YES
set GENERATE_HTMLHELP=YES set GENERATE_HTMLHELP=YES
) ELSE ( ) ELSE (
IF "%1" == "docset" ( IF "%1" == "docset" (
set GENERATE_DOCSET=YES set GENERATE_DOCSET=YES
set GENERATE_HTML=YES set GENERATE_HTML=YES
) ELSE ( ) ELSE (
IF "%1" == "latex" ( IF "%1" == "latex" (
set GENERATE_LATEX=YES set GENERATE_LATEX=YES
) ELSE ( ) ELSE (
IF "%1" == "php" ( IF "%1" == "php" (
set GENERATE_HTML=YES set GENERATE_HTML=YES
set SEARCHENGINE=YES set SEARCHENGINE=YES
set SERVER_BASED_SEARCH=YES set SERVER_BASED_SEARCH=YES
) ELSE ( ) ELSE (
IF "%1" == "qch" ( IF "%1" == "qch" (
set GENERATE_HTML=YES set GENERATE_HTML=YES
set GENERATE_QHP=YES set GENERATE_QHP=YES
) ELSE ( ) ELSE (
IF "%1" == "xml" ( IF "%1" == "xml" (
set GENERATE_XML=YES set GENERATE_XML=YES
) ELSE ( ) ELSE (
REM Default to HTML format. REM Default to HTML format.
set GENERATE_HTML=YES set GENERATE_HTML=YES
set SEARCHENGINE=YES set SEARCHENGINE=YES
) )
) )
) )
) )
) )
) )
) )
REM Check for Graphviz (its location should be in %PATH%). REM Check for Graphviz (its location should be in %PATH%).
REM REM
REM NB: Always do this check because it looks like errorlevel is not set REM NB: Always do this check because it looks like errorlevel is not set
REM when the test is done inside the IF block. REM when the test is done inside the IF block.
dot <NUL >NUL 2>&1 dot <NUL >NUL 2>&1
IF %GENERATE_HTML%==YES ( IF %GENERATE_HTML%==YES (
IF NOT %errorlevel%==0 ( IF NOT %errorlevel%==0 (
IF %errorlevel%==9009 ( IF %errorlevel%==9009 (
echo Error: dot was not found in PATH, please install Graphviz! echo Error: dot was not found in PATH, please install Graphviz!
) ELSE ( ) ELSE (
echo Error: %errorlevel% error code when running dot, please check Graphviz installation. echo Error: %errorlevel% error code when running dot, please check Graphviz installation.
) )
EXIT /B EXIT /B
) )
) )
REM REM
REM NOW RUN DOXYGEN REM NOW RUN DOXYGEN
REM REM
REM NB: we do this _after_ copying the required files to the output folders REM NB: we do this _after_ copying the required files to the output folders
REM otherwise when generating the CHM file with Doxygen, those files are REM otherwise when generating the CHM file with Doxygen, those files are
REM not included! REM not included!
REM REM
set PATH=%PATH%;%HHC_PATH% set PATH=%PATH%;%HHC_PATH%
doxygen Doxyfile doxygen Doxyfile
REM Check that class inheritance diagram images are present for html/chm docs. REM Check that class inheritance diagram images are present for html/chm docs.
REM REM
REM NB: Set the file to check outside the IF block, REM NB: Set the file to check outside the IF block,
REM otherwise the second check does not always pick its value. REM otherwise the second check does not always pick its value.
set filetofind=out\html\classwx_app_console__inherit__graph.png set filetofind=out\html\classwx_app_console__inherit__graph.png
IF %GENERATE_HTML%==YES ( IF %GENERATE_HTML%==YES (
IF NOT EXIST %~dp0%filetofind% ( IF NOT EXIST %~dp0%filetofind% (
echo Warning: Class inheritance diagram images are missing, please check Graphviz installation. echo Warning: Class inheritance diagram images are missing, please check Graphviz installation.
) )
) )