-$WXDIR/utils/tex2rtf/src/tex2rtf $WXDIR/docs/latex/wx/manual.tex $DEST/wx/wx.htm -twice -html
-cp $DEST/wx/wx.htm $DEST/wx/index.htm
-
-cp $WXDIR/contrib/docs/latex/ogl/*.gif $DEST/ogl
-cp $WXDIR/contrib/docs/latex/ogl/*.bmp $DEST/ogl
-$WXDIR/utils/tex2rtf/src/tex2rtf $WXDIR/contrib/docs/latex/ogl/ogl.tex $DEST/ogl/ogl.htm -twice -html
-cp $DEST/ogl/ogl.htm $DEST/ogl/index.htm
+cp $WXDIR/docs/latex/wx/*.css $DEST/wx
+tex2rtf $WXDIR/docs/latex/wx/manual.tex $DEST/wx/wx.html -twice -html -macros $INI
+cp $DEST/wx/wx_contents.html $DEST/wx/index.html
+cp $DEST/wx/* $WXDIR/docs/html/wx
+
+# **** and the contribs
+for c in $CONTRIBS; do
+ echo "****" $c "****"
+ mkdir $DEST/$c
+ cp $WXDIR/contrib/docs/latex/$c/*.gif $DEST/$c
+ cp $WXDIR/contrib/docs/latex/$c/*.bmp $DEST/$c
+ tex2rtf $WXDIR/contrib/docs/latex/$c/$c.tex $DEST/$c/$c.html -twice -html -macros $INI
+ cp $DEST/$c/$c.html $DEST/$c/index.html || cp $DEST/$c/${c}_contents.html $DEST/$c/index.html
+done