make the script a bit more intelligent using MS broken batch scripting (it took me 40 min to sort out the right syntax!)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3a776fb356
commit
8e59a2cdc1
@ -1,26 +1,34 @@
|
|||||||
|
@echo off
|
||||||
REM $Id$
|
REM $Id$
|
||||||
|
|
||||||
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
|
mkdir out 2>&1 >NUL
|
||||||
mkdir out\html
|
mkdir out\html 2>&1 >NUL
|
||||||
mkdir out\html\wxgtk
|
mkdir out\html\wxgtk 2>&1 >NUL
|
||||||
mkdir out\html\wxmsw
|
mkdir out\html\wxmsw 2>&1 >NUL
|
||||||
mkdir out\html\wxmac
|
mkdir out\html\wxmac 2>&1 >NUL
|
||||||
|
|
||||||
REM this image is not automatically copied by Doxygen because it's not
|
REM this image is not automatically copied by Doxygen because it's not
|
||||||
REM used in doxygen documentation but only in our html footer...
|
REM used in doxygen documentation but only in our html footer...
|
||||||
copy images\powered-by-wxwidgets.png out\html
|
copy images\powered-by-wxwidgets.png out\html 2>&1 >NUL
|
||||||
copy images\*logo.png out\html
|
copy images\*logo.png out\html 2>&1 >NUL
|
||||||
copy images\wxgtk\*png out\html\wxgtk
|
copy images\wxgtk\*png out\html\wxgtk 2>&1 >NUL
|
||||||
copy images\wxmsw\*png out\html\wxmsw
|
copy images\wxmsw\*png out\html\wxmsw 2>&1 >NUL
|
||||||
copy images\wxmac\*png out\html\wxmac
|
copy images\wxmac\*png out\html\wxmac 2>&1 >NUL
|
||||||
|
|
||||||
REM this CSS is automatically copied by Doxygen because it's
|
REM this CSS is automatically copied by Doxygen because it's
|
||||||
REM included by our custom html header...
|
REM included by our custom html header...
|
||||||
copy wxwidgets.css out\html
|
copy wxwidgets.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
|
||||||
|
|
||||||
REM
|
REM
|
||||||
REM NOW RUN DOXYGEN
|
REM NOW RUN DOXYGEN
|
||||||
@ -29,4 +37,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 otherwise when generating the CHM file with Doxygen, those files are
|
||||||
REM not included!
|
REM not included!
|
||||||
REM
|
REM
|
||||||
doxygen Doxyfile_all
|
set PATH=%PATH%;%HHC_PATH%
|
||||||
|
doxygen %cfgfile%
|
||||||
|
Loading…
Reference in New Issue
Block a user