+do_docs ()
+{
+##remove files, then regenerate
+rm ${WORKDIR}/archives/wxWidgets-Docs*
+rm ${WORKDIR}/archives/htb/*.*
+
+######### dir index.tex rootdir
+do_texrtf wx manual.tex
+do_texrtf book book.tex
+do_texrtf svg dcsvg.tex contrib
+do_texrtf ogl ogl.tex contrib
+do_texrtf mmedia mmedia.tex contrib
+do_texrtf gizmos manual.tex contrib
+do_texrtf fl fl.tex contrib
+do_util_texrtf tex2rtf tex2rtf.tex
+
+cd ${WORKDIR}/archives/
+tar zcvf ${WORKDIR}/archives/wxWidgets-Docs-HTML-${CURDATE}.tar.gz html/wx/*.html html/wx/*.gif html/wx/*.css
+# TODO: include the extra HTML docs into the above archive.
+# TODO: we need to add the version number to the doc archives
+# tar zcvf ${WORKDIR}/archives/wxWidgets-Docs-Extra-HTML-${CURDATE}.tar.gz `find . -name 'wx' -prune -o -name '*.html' -print`
+
+tar zcvf ${WORKDIR}/archives/wxWidgets-Docs-HTB-${CURDATE}.tar.gz htb/*.htb
+# tar zcvf ${WORKDIR}/archives/wxWidgets-Docs-Extra-HTB-${CURDATE}.tar.gz --exclude wx.htb htb/*.htb
+
+##remove .con files
+rm ${WORKDIR}/*.con
+
+}
+
+
+add_win_files ()
+{
+### starts with wxWidgets-Docs-xxx.zip
+for f in `find ${WORKDIR}/archives/win/ -name wx\*.zip ` ; do
+ mv $f ${WORKDIR}/archives/`basename $f | tr -d ".zip"`-${CURDATE}.zip
+ done
+
+rm ${WORKDIR}/archives/*.exe
+for f in `find ${WORKDIR}/archives/win/ -name wx\*.exe ` ; do
+ mv $f ${WORKDIR}/archives/`basename $f | tr -d ".exe"`-${CURDATE}.exe
+ done
+
+}