]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/makedocs
wxUSE_STL/wxArrayString fixes.
[wxWidgets.git] / wxPython / distrib / makedocs
CommitLineData
1e4a197e
RD
1#!/bin/bash
2
3#----------------------------------------------------------------------
4
1e4a197e
RD
5if [ ! -d wxPython ]; then # TODO: make this test more robust
6 echo "Please run this script from the root wxPython directory."
7 exit 1
8fi
9
10
bc59c206 11VERSION=`python -c "import setup;print setup.VERSION"`
0a358773 12CONTRIBS="ogl gizmos"
bc59c206 13DEST=wxPython-$VERSION/docs
0a358773 14
77d4f443 15
1e4a197e 16# **** Make a directory to build up a distribution tree
1e4a197e
RD
17mkdir -p _build_docs/$DEST
18cd _build_docs
19mkdir $DEST/wx
1e4a197e
RD
20
21WXDIR=../..
77d4f443 22INI=$WXDIR/docs/latex/wx/tex2rtf.ini
1e4a197e 23
0a358773
RD
24# **** Build the main docs using tex2rtf
25echo "****" main "****"
1e4a197e 26cp $WXDIR/docs/latex/wx/*.gif $DEST/wx
947697fb 27cp $WXDIR/docs/latex/wx/*.css $DEST/wx
77d4f443 28tex2rtf $WXDIR/docs/latex/wx/manual.tex $DEST/wx/wx.html -twice -html -macros $INI
ccc6783c 29cp $DEST/wx/wx_contents.html $DEST/wx/index.html
689b5c38 30cp $DEST/wx/* $WXDIR/docs/html/wx
1e4a197e 31
0a358773
RD
32# **** and the contribs
33for c in $CONTRIBS; do
34 echo "****" $c "****"
35 mkdir $DEST/$c
36 cp $WXDIR/contrib/docs/latex/$c/*.gif $DEST/$c
37 cp $WXDIR/contrib/docs/latex/$c/*.bmp $DEST/$c
77d4f443 38 tex2rtf $WXDIR/contrib/docs/latex/$c/$c.tex $DEST/$c/$c.html -twice -html -macros $INI
ccc6783c 39 cp $DEST/$c/$c.html $DEST/$c/index.html || cp $DEST/$c/${c}_contents.html $DEST/$c/index.html
0a358773 40done
1e4a197e
RD
41
42
43# **** zip the docs into "books"
44pushd $DEST
45pushd wx
46zip ../wx.zip *
47popd
48rm -r wx
49
0a358773
RD
50for c in $CONTRIBS; do
51 pushd $c
52 zip ../$c.zip *
53 popd
54 rm -r $c
55done
1e4a197e
RD
56
57popd
58cp ../distrib/viewdocs.py $DEST
59cp ../distrib/README.viewdocs.txt $DEST/README.txt
51ba037f 60cp ../docs/xml/wxPython-metadata.xml $DEST
1e4a197e 61
bc59c206
RD
62rm -f ../dist/wxPythonDocs-$VERSION.tar.gz
63tar cvf ../dist/wxPythonDocs-$VERSION.tar $DEST
64gzip -9 ../dist/wxPythonDocs-$VERSION.tar
1e4a197e
RD
65
66
67# **** Cleanup
68cd ..
69rm -r _build_docs
70
71