X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c981bfbc02a2db7c313169b23bbdd2bd83f63ee..a4830bb56087db30c534dc6937242b2260d0a9c8:/docs/doxygen/regen.bat

diff --git a/docs/doxygen/regen.bat b/docs/doxygen/regen.bat
index 43e6670073..6250d86727 100644
--- a/docs/doxygen/regen.bat
+++ b/docs/doxygen/regen.bat
@@ -1,20 +1,71 @@
+@echo off
 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.
 
-mkdir out
-mkdir out\html
+mkdir out 2>&1 >NUL
+mkdir out\html 2>&1 >NUL
+mkdir out\html\generic 2>&1 >NUL
 
-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
-copy images\*logo.png out\html
+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 custom aliases
+copy images\generic\*.png out\html\generic 2>&1 >NUL
 
-REM this CSS is automatically copied by Doxygen because it's
-REM included by our custom html header...
-copy wxwidgets.css out\html
+pushd ..\..
+set WXWIDGETS=%CD%
+popd
+
+REM Defaults for settings controlled by this script
+set GENERATE_DOCSET=NO
+set GENERATE_HTML=NO
+set GENERATE_HTMLHELP=NO
+set GENERATE_LATEX=NO
+set GENERATE_QHP=NO
+set GENERATE_XML=NO
+set SEARCHENGINE=NO
+set SERVER_BASED_SEARCH=NO
+
+IF "%1" == "all" (
+  set GENERATE_HTML=YES
+  set GENERATE_HTMLHELP=YES
+  set GENERATE_XML=YES
+) ELSE (
+  IF "%1" == "chm" (
+    set GENERATE_HTML=YES
+    set GENERATE_HTMLHELP=YES
+  ) ELSE (
+    IF "%1" == "docset" (
+      set GENERATE_DOCSET=YES
+      set GENERATE_HTML=YES
+    ) ELSE (
+      IF "%1" == "latex" (
+        set GENERATE_LATEX=YES
+      ) ELSE (
+        IF "%1" == "php" (
+          set GENERATE_HTML=YES
+          set SEARCHENGINE=YES
+          set SERVER_BASED_SEARCH=YES
+        ) ELSE (
+          IF "%1" == "qch" (
+            set GENERATE_HTML=YES
+            set GENERATE_QHP=YES
+          ) ELSE (
+            IF "%1" == "xml" (
+              set GENERATE_XML=YES
+            ) ELSE (
+              REM Default to HTML format.
+              set GENERATE_HTML=YES
+              set SEARCHENGINE=YES
+            )
+          )
+        )
+      )
+    )
+  )
+)
 
 REM
 REM NOW RUN DOXYGEN
@@ -23,4 +74,5 @@ 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     not included!
 REM
-doxygen Doxyfile.all
+set PATH=%PATH%;%HHC_PATH%
+doxygen Doxyfile