-@echo off
-rem **** Make a directory to build up a distribution tree
-md _distrib_zip
-md _distrib_zip\wxPython-%1
+setlocal
+set DOCDIR=%WXWIN%\docs
-cd _distrib_zip
+cd %DOCDIR%\latex\wx
+mkdir %DOCDIR%\html\wx
+copy *.gif %DOCDIR%\html\wx
+copy *.css %DOCDIR%\html\wx
+start /wait tex2rtf %DOCDIR%\latex\wx\manual.tex %DOCDIR%\html\wx\wx.htm -twice -html -macros %DOCDIR%\latex\wx\tex2rtf_css.ini
-rem **** copy the docs into the tree
-md wxPython-%1\docs
-md wxPython-%1\docs\wx
-md wxPython-%1\docs\ogl
-copy %WXWIN%\docs\html\wx\*.* wxPython-%1\docs\wx
-copy wxPython-%1\docs\wx\wx.htm wxPython-%1\docs\wx\index.htm
-copy %WXWIN%\docs\html\ogl\*.* wxPython-%1\docs\ogl
-copy wxPython-%1\docs\ogl\ogl.htm wxPython-%1\docs\ogl\index.htm
+erase %DOCDIR%\html\wx\*.con
+erase %DOCDIR%\html\wx\*.ref
+erase %DOCDIR%\latex\wx\*.con
+erase %DOCDIR%\latex\wx\*.ref
-rem **** zip up the docs
-rem zip -r ..\distrib\wxPython-docs-%1.zip wxPython-%1\docs
-tar cvf ..\dist\wxPythonDocs-%1.tar wxPython-%1
-gzip -9 ..\dist\wxPythonDocs-%1.tar
-
-rem **** Cleanup
-cd ..
-del /sxzy _distrib_zip
+cd %DOCDIR%\html\wx
+copy %DOCDIR%\latex\wx\wx.css .
+hhc wx.hhp
+mkdir ..\..\htmlhelp
+erase %DOCDIR%\htmlhelp\wx.chm
+move wx.chm ..\..\htmlhelp