+if [ $CHARTYPE = both -o $CHARTYPE = ansi ]; then
+ .make hybrid USE_GDIPLUS=1
+fi
+if [ $CHARTYPE = both -o $CHARTYPE = unicode ]; then
+ .make hybrid-uni USE_GDIPLUS=1
+fi
+
+
+# echo "Building tex2rtf..."
+# cd $WXDIR/utils/tex2rtf/src
+# $WXDIR/build/msw/.mymake hybrid
+# cp vc_mswhdll/tex2rtf.exe $WXDIR/lib/vc_dll/tex2rtf.exe
+
+# echo "Translating docs to html..."
+# DOCDIR=$WXDIR/docs
+# cd $DOCDIR/latex/wx
+# mkdir -p $DOCDIR/html/wx
+# cp *.gif $DOCDIR/html/wx
+# cp *.css $DOCDIR/html/wx
+# DOCSRC=`cygpath -w $DOCDIR/latex/wx/manual.tex`
+# DOCDEST=`cygpath -w $DOCDIR/html/wx/wx.htm`
+# DOCINI=`cygpath -w $DOCDIR/latex/wx/tex2rtf_css.ini`
+
+# $WXDIR/lib/vc_dll/tex2rtf.exe $DOCSRC $DOCDEST -twice -html -macros $DOCINI
+
+
+# echo "Extracting html docs..."
+# mkdir -p $WXDIR/docs/html/wx
+# cd $WXDIR/docs/html/wx
+# rm -rf *
+# tar xjf $DESTDIR/wxPython-docs-$VERSION.tar.bz2
+# rm $DESTDIR/wxPython-docs-$VERSION.tar.bz2
+# unzip wxPython-$VERSION/docs/wx.zip
+
+
+echo "Building the HTMLHelp file..."
+cd $WXDIR/docs/html/wx
+##cp $DOCDIR/latex/wx/wx.css .
+$TOOLS/HTMLHelpWorkshop/hhc.exe wx.hhp || true
+mkdir -p ../../htmlhelp
+mv wx.chm ../../htmlhelp