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