path=${0%%/$me} # path from which the script has been launched
current=$(pwd)
cd $path
-export WXWIDGETS=`cd ../.. && pwd`
+if [ "$WXWIDGETS" = "" ]; then
+ export WXWIDGETS=`cd ../.. && pwd`
+ if [ "$OSTYPE" = "cygwin" ]; then
+ export WXWIDGETS=`cygpath -w $WXWIDGETS`
+ fi
+fi
+
+if [ "$DOXYGEN" = "" ]; then
+ DOXYGEN=doxygen
+fi
# prepare folders for the cp commands below
mkdir -p out/html # we need to copy files in this folder below
cp images/generic/*png out/html/generic
cp wxwidgets.js out/html
-# these CSS are not automatically copied by Doxygen because they're
-# included by our custom html header...
-cp wxwidgets.css out/html
-cp wxtabs.css out/html
-
# which configuration should we use?
if [[ -z "$1" ]]; then
cfgfile="Doxyfile_all"
# otherwise when generating the CHM file with Doxygen, those files are
# not included!
#
-doxygen $cfgfile
+$DOXYGEN $cfgfile
if [[ "$1" = "qch" ]]; then
# we need to add missing files to the .qhp
# more readable
currpath=`pwd`/
interfacepath=`cd ../../interface && pwd`/
-cat doxygen.log | sed -e "s|$currpath||g" -e "s|$interfacepath||g" >temp
-
-# Doxygen warnings are not completely sorted for filename; enforce correct sorting:
-cat temp | sort >doxygen.log
+cat doxygen.log | sed -e "s|$currpath||g" -e "s|$interfacepath||g" > temp
+cat temp > doxygen.log
rm temp
# return to the original folder from which this script was launched