added the logos for our main ports
[wxWidgets.git] / docs / doxygen / regen.sh
1 #!/bin/bash
2
3 # $Id$
4
5 # This bash script regenerates the HTML doxygen version of the
6 # wxWidgets manual and adjusts the doxygen log to make it more
7 # readable.
8
9 mkdir -p out/html # we need to copy files in this folder below
10
11 # this image is not automatically copied by Doxygen because it's not
12 # used in doxygen documentation but only in our html footer...
13 cp images/powered-by-wxwidgets.png out/html
14 cp images/*logo.png out/html
15
16 # this CSS is automatically copied by Doxygen because it's
17 # included by our custom html header...
18 cp wxwidgets.css out/html
19
20 #
21 # NOW RUN DOXYGEN
22 #
23 # NB: we do this _after_ copying the required files to the output folders
24 # otherwise when generating the CHM file with Doxygen, those files are
25 # not included!
26 #
27 if [[ -z "$1" ]]; then
28 cfgfile="Doxyfile.all"
29 else
30 cfgfile="Doxyfile.$1"
31 fi
32
33 doxygen $cfgfile
34
35 # Doxygen has the annoying habit to put the full path of the
36 # affected files in the log file; remove it to make the log
37 # more readable
38 currpath=`pwd`/
39 interfacepath=`cd ../../interface && pwd`/
40 cat doxygen.log | sed -e "s|$currpath||g" -e "s|$interfacepath||g" >temp
41 mv temp doxygen.log
42
43 # filter out the following warning which we don't care about
44 #cat doxygen.log | grep -v ".*supplied.*as.*the.*argument.*is.*not.*an.*input.*file.*" >temp
45 #mv temp doxygen.log
46