-# this image is not automatically copied by Doxygen because it's not
-# used in doxygen documentation but only in our html footer...
+# remember current folder and then cd to the docs/doxygen one
+me=$(basename $0)
+path=${0%%/$me} # path from which the script has been launched
+current=$(pwd)
+cd $path
+export WXWIDGETS=`cd ../.. && pwd`
+
+# prepare folders for the cp commands below
+mkdir -p out/html # we need to copy files in this folder below
+mkdir -p out/html/wxmsw out/html/wxgtk out/html/wxmac
+
+# These are not automatically copied by Doxygen because they're not
+# used in doxygen documentation, only in our html footer and by our
+# custom aliases