-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
+# **** 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
+ $WXDIR/utils/tex2rtf/src/tex2rtf $WXDIR/contrib/docs/latex/$c/$c.tex $DEST/$c/$c.htm -twice -html -macros $WXDIR/docs/latex/wx/tex2rtf.ini
+ cp $DEST/$c/$c.htm $DEST/$c/index.htm || cp $DEST/$c/${c}_contents.html $DEST/$c/index.htm
+done