X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ef7f03ad8383051d1b1e6d216dc0d536bbf3eef5..2f36b4d22beeb7f4f0cedf922c0c26d037f54477:/docs/doxygen/regen.bat

diff --git a/docs/doxygen/regen.bat b/docs/doxygen/regen.bat
index fa85d3b4c8..57550b5242 100644
--- a/docs/doxygen/regen.bat
+++ b/docs/doxygen/regen.bat
@@ -1,5 +1,4 @@
 @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
@@ -7,37 +6,66 @@ REM readable.
 
 mkdir out 2>&1 >NUL
 mkdir out\html 2>&1 >NUL
-mkdir out\html\wxgtk 2>&1 >NUL
-mkdir out\html\wxmsw 2>&1 >NUL
-mkdir out\html\wxmac 2>&1 >NUL
+mkdir out\html\generic 2>&1 >NUL
 
 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\powered-by-wxwidgets.png out\html 2>&1 >NUL
-copy images\logo_*.png out\html 2>&1 >NUL
-copy images\tab_*.gif out\html 2>&1 >NUL
-copy images\wxgtk\*.png out\html\wxgtk 2>&1 >NUL
-copy images\wxmsw\*.png out\html\wxmsw 2>&1 >NUL
-copy images\wxmac\*.png out\html\wxmac 2>&1 >NUL
-copy wxwidgets.js out\html 2>&1 >NUL
-
-REM these CSS are not automatically copied by Doxygen because they're
-REM included by our custom html header...
-copy wxwidgets.css out\html 2>&1 >NUL
-copy wxtabs.css out\html 2>&1 >NUL
-
-REM set cfgfile variable to the right doxyfile to use,
-REM using MS broken batch scripting
-setlocal enableextensions
-set arg=%1
-if "%arg%" EQU "" set cfgfile=Doxyfile_all
-if "%arg%" NEQ "" set cfgfile=Doxyfile_%1
+copy images\generic\*.png out\html\generic 2>&1 >NUL
 
 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
 REM
@@ -46,4 +74,4 @@ REM     otherwise when generating the CHM file with Doxygen, those files are
 REM     not included!
 REM
 set PATH=%PATH%;%HHC_PATH%
-doxygen %cfgfile%
+doxygen Doxyfile