]> git.saurik.com Git - wxWidgets.git/blame - docs/doxygen/regen.sh
latex include not properly working for links and titlepage
[wxWidgets.git] / docs / doxygen / regen.sh
CommitLineData
85e43f4e 1#!/bin/bash
a7c93f3f 2#
cba817ac 3# $Id$
a7c93f3f 4#
cba817ac
FM
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.
a7c93f3f
FM
8#
9# Usage:
10# ./regen.sh [html|chm|xml|all]
11#
12# Pass "html" to regen only the HTML output format, "chm" only for
13# the CHM, "xml" only for the XML and "all" to regen them all.
14#
15# If no arguments are passed all formats are regenerated
16# (just like passing "all").
17#
18
cba817ac 19
a7c93f3f 20#
aa6ec1d7
FM
21me=$(basename $0)
22path=${0%%/$me} # path from which the script has been launched
23current=$(pwd)
24cd $path
25
a7c93f3f 26# prepare folders for the cp commands below
85e43f4e 27mkdir -p out/html # we need to copy files in this folder below
7a118965 28mkdir -p out/html/wxmsw out/html/wxgtk out/html/wxmac
4411a6b6 29
a7c93f3f
FM
30# these images are not automatically copied by Doxygen because they're not
31# used in doxygen documentation but only in our html footer and by our
32# custom aliases
4411a6b6 33cp images/powered-by-wxwidgets.png out/html
9c981bfb 34cp images/*logo.png out/html
7a118965
FM
35cp images/wxmsw/*png out/html/wxmsw
36cp images/wxmac/*png out/html/wxmac
37cp images/wxgtk/*png out/html/wxgtk
d513b59d 38
a7c93f3f 39# this CSS is not automatically copied by Doxygen because it's
d513b59d
FM
40# included by our custom html header...
41cp wxwidgets.css out/html
42
a7c93f3f
FM
43# which configuration should we use?
44if [[ -z "$1" ]]; then
45 cfgfile="Doxyfile.all"
46else
47 cfgfile="Doxyfile.$1"
48fi
49
85e43f4e
FM
50#
51# NOW RUN DOXYGEN
52#
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
55# not included!
56#
85e43f4e
FM
57doxygen $cfgfile
58
d513b59d
FM
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
61# more readable
62currpath=`pwd`/
2c58a7e7
FM
63interfacepath=`cd ../../interface && pwd`/
64cat doxygen.log | sed -e "s|$currpath||g" -e "s|$interfacepath||g" >temp
4514447c
FM
65mv temp doxygen.log
66
67# filter out the following warning which we don't care about
85e43f4e
FM
68#cat doxygen.log | grep -v ".*supplied.*as.*the.*argument.*is.*not.*an.*input.*file.*" >temp
69#mv temp doxygen.log
4514447c 70
aa6ec1d7 71cd $current