-REM $Id$
-
-REM This bash script regenerates the HTML doxygen version of the
-REM wxWidgets manual and adjusts the doxygen log to make it more
-REM readable.
-
-doxygen
-
-REM this image is not automatically copied by Doxygen because it's not
-REM used in doxygen documentation but only in our html footer...
-copy images/powered-by-wxwidgets.png out/html
-
-REM this CSS is automatically copied by Doxygen because it's
-REM included by our custom html header...
-copy wxwidgets.css out/html
+@echo off\r
+REM $Id$\r
+\r
+REM This bash script regenerates the HTML doxygen version of the\r
+REM wxWidgets manual and adjusts the doxygen log to make it more\r
+REM readable.\r
+\r
+mkdir out 2>&1 >NUL\r
+mkdir out\html 2>&1 >NUL\r
+mkdir out\html\generic 2>&1 >NUL\r
+\r
+REM These not automatically copied by Doxygen because they're not\r
+REM used in doxygen documentation, only in our html footer and by our\r
+REM custom aliases\r
+copy images\generic\*.png out\html\generic 2>&1 >NUL\r
+\r
+pushd ..\..\r
+set WXWIDGETS=%CD%\r
+popd\r
+\r
+REM Defaults for settings controlled by this script\r
+set GENERATE_DOCSET=NO\r
+set GENERATE_HTML=NO\r
+set GENERATE_HTMLHELP=NO\r
+set GENERATE_LATEX=NO\r
+set GENERATE_QHP=NO\r
+set GENERATE_XML=NO\r
+set SEARCHENGINE=NO\r
+set SERVER_BASED_SEARCH=NO\r
+\r
+IF "%1" == "all" (\r
+ set GENERATE_HTML=YES\r
+ set GENERATE_HTMLHELP=YES\r
+ set GENERATE_XML=YES\r
+) ELSE (\r
+ IF "%1" == "chm" (\r
+ set GENERATE_HTML=YES\r
+ set GENERATE_HTMLHELP=YES\r
+ ) ELSE (\r
+ IF "%1" == "docset" (\r
+ set GENERATE_DOCSET=YES\r
+ set GENERATE_HTML=YES\r
+ ) ELSE (\r
+ IF "%1" == "latex" (\r
+ set GENERATE_LATEX=YES\r
+ ) ELSE (\r
+ IF "%1" == "php" (\r
+ set GENERATE_HTML=YES\r
+ set SEARCHENGINE=YES\r
+ set SERVER_BASED_SEARCH=YES\r
+ ) ELSE (\r
+ IF "%1" == "qch" (\r
+ set GENERATE_HTML=YES\r
+ set GENERATE_QHP=YES\r
+ ) ELSE (\r
+ IF "%1" == "xml" (\r
+ set GENERATE_XML=YES\r
+ ) ELSE (\r
+ REM Default to HTML format.\r
+ set GENERATE_HTML=YES\r
+ set SEARCHENGINE=YES\r
+ )\r
+ )\r
+ )\r
+ )\r
+ )\r
+ )\r
+)\r
+\r
+REM\r
+REM NOW RUN DOXYGEN\r
+REM\r
+REM NB: we do this _after_ copying the required files to the output folders\r
+REM otherwise when generating the CHM file with Doxygen, those files are\r
+REM not included!\r
+REM\r
+set PATH=%PATH%;%HHC_PATH%\r
+doxygen Doxyfile\r