+md5sum ${FTPDIR}/CVS_HEAD/v1/wx* > ${FTPDIR}/CVS_HEAD/v1/MD5SUM
+sleep 10
+echo CVS HEAD last updated at `date -u` > ${FTPDIR}/CVS_HEAD/v1/updated_at.txt
+
+
+## Docs...
+find ${FTPDIR}/CVS_Docs/files -type f -name wx\* -mtime +3 | xargs rm -rf
+cp ${WORKDIR}/archives/wx-doc* ${FTPDIR}/CVS_Docs/files
+cp ${WORKDIR}/archives/win/wxW* ${FTPDIR}/CVS_Docs/files
+
+rm -f ${FTPDIR}/CVS_Docs/wx* ${FTPDIR}/CVS_Docs/MD5SUM
+##there must be an easier way of doing these links...
+for f in `find ${FTPDIR}/CVS_Docs/files -type f -name wx\* -mmin -601` ; do
+ ln -s $f `echo $f | sed -e "s/-${CURDATE}//" | sed -e "s|/files||" `
+done
+md5sum ${FTPDIR}/CVS_Docs/wx* > ${FTPDIR}/CVS_Docs/MD5SUM
+sleep 10
+echo CVS Documentation generated from bakefiles last updated at `date -u` > ${FTPDIR}/CVS_Docs/updated_at.txt
+}
+
+do_texrtf ()
+{
+
+##parameters : subdir_of_tex index.tex dir_under_wxWidgets
+# need this first time only
+if [ ! -e ${WORKDIR}/archives/html/$1 ] ; then
+ mkdir ${WORKDIR}/archives/html/$1
+fi
+
+rm -f ${WORKDIR}/archives/html/$1/*
+/usr/local/bin/tex2rtf ${WORKDIR}/wxWidgets/$3/docs/latex/$1/$2 ${WORKDIR}/archives/html/$1/$1 -twice -html -macros ${WORKDIR}/wxWidgets/docs/latex/wx/tex2rtf_css.ini
+cp ${WORKDIR}/wxWidgets/$3/docs/latex/$1/*.gif ${WORKDIR}/archives/html/$1
+cp ${WORKDIR}/wxWidgets/$3/docs/latex/$1/*.css ${WORKDIR}/archives/html/$1
+cd ${WORKDIR}/archives/html/$1
+zip -l -q -9 ${WORKDIR}/archives/htb/$1.htb *.html *.css wx.hhc wx.hhp wx.hhk
+zip -q -9 ${WORKDIR}/archives/htb/$1.htb *.gif
+}