]>
git.saurik.com Git - wxWidgets.git/blob - docs/doxygen/regen.sh
5 # This bash script regenerates the HTML doxygen version of the
6 # wxWidgets manual and adjusts the doxygen log to make it more
10 # ./regen.sh [html|chm|xml|latex|all]
12 # Pass "x" to regen only the X output format and "all" to regen them all.
13 # If no arguments are passed all formats are regenerated
14 # (just like passing "all").
18 # remember current folder and then cd to the docs/doxygen one
20 path
=${0%%/$me} # path from which the script has been launched
23 export WXWIDGETS
=`cd ../.. && pwd`
25 # prepare folders for the cp commands below
26 mkdir -p out
/html
# we need to copy files in this folder below
27 mkdir -p out
/html
/wxmsw out
/html
/wxgtk out
/html
/wxmac
29 # These are not automatically copied by Doxygen because they're not
30 # used in doxygen documentation, only in our html footer and by our
32 cp images
/powered
-by-wxwidgets.png out
/html
33 cp images
/*logo.png out
/html
34 cp images
/wxmsw
/*png out
/html
/wxmsw
35 cp images
/wxmac
/*png out
/html
/wxmac
36 cp images
/wxgtk
/*png out
/html
/wxgtk
37 cp wxwidgets.js out
/html
39 # this CSS is not automatically copied by Doxygen because it's
40 # included by our custom html header...
41 cp wxwidgets.css out
/html
43 # which configuration should we use?
44 if [[ -z "$1" ]]; then
45 cfgfile
="Doxyfile_all"
53 # NB: we do this _after_ copying the required files to the output folders
54 # otherwise when generating the CHM file with Doxygen, those files are
59 # Doxygen has the annoying habit to put the full path of the
60 # affected files in the log file; remove it to make the log
63 interfacepath
=`cd ../../interface && pwd`/
64 cat doxygen.log
| sed -e "s|$currpath||g" -e "s|$interfacepath||g" >temp
66 # Doxygen warnings are not completely sorted for filename; enforce correct sorting:
67 cat temp
| sort >doxygen.log
70 # return to the original folder from which this script was launched