]>
Commit | Line | Data |
---|---|---|
85e43f4e | 1 | #!/bin/bash |
4411a6b6 | 2 | |
cba817ac FM |
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 | ||
85e43f4e | 9 | mkdir -p out/html # we need to copy files in this folder below |
7a118965 | 10 | mkdir -p out/html/wxmsw out/html/wxgtk out/html/wxmac |
4411a6b6 FM |
11 | |
12 | # this image is not automatically copied by Doxygen because it's not | |
13 | # used in doxygen documentation but only in our html footer... | |
14 | cp images/powered-by-wxwidgets.png out/html | |
9c981bfb | 15 | cp images/*logo.png out/html |
7a118965 FM |
16 | cp images/wxmsw/*png out/html/wxmsw |
17 | cp images/wxmac/*png out/html/wxmac | |
18 | cp images/wxgtk/*png out/html/wxgtk | |
d513b59d FM |
19 | |
20 | # this CSS is automatically copied by Doxygen because it's | |
21 | # included by our custom html header... | |
22 | cp wxwidgets.css out/html | |
23 | ||
85e43f4e FM |
24 | # |
25 | # NOW RUN DOXYGEN | |
26 | # | |
27 | # NB: we do this _after_ copying the required files to the output folders | |
28 | # otherwise when generating the CHM file with Doxygen, those files are | |
29 | # not included! | |
30 | # | |
31 | if [[ -z "$1" ]]; then | |
32 | cfgfile="Doxyfile.all" | |
33 | else | |
34 | cfgfile="Doxyfile.$1" | |
35 | fi | |
36 | ||
37 | doxygen $cfgfile | |
38 | ||
d513b59d FM |
39 | # Doxygen has the annoying habit to put the full path of the |
40 | # affected files in the log file; remove it to make the log | |
41 | # more readable | |
42 | currpath=`pwd`/ | |
2c58a7e7 FM |
43 | interfacepath=`cd ../../interface && pwd`/ |
44 | cat doxygen.log | sed -e "s|$currpath||g" -e "s|$interfacepath||g" >temp | |
4514447c FM |
45 | mv temp doxygen.log |
46 | ||
47 | # filter out the following warning which we don't care about | |
85e43f4e FM |
48 | #cat doxygen.log | grep -v ".*supplied.*as.*the.*argument.*is.*not.*an.*input.*file.*" >temp |
49 | #mv temp doxygen.log | |
4514447c | 50 |