]> git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/makedocs
unicode compilation fix
[wxWidgets.git] / wxPython / distrib / makedocs
1 #!/bin/bash
2
3 #----------------------------------------------------------------------
4
5 if [ -z $1 ]; then
6 echo "Please specify a version number on the command line."
7 exit 1
8 fi
9
10 if [ ! -d wxPython ]; then # TODO: make this test more robust
11 echo "Please run this script from the root wxPython directory."
12 exit 1
13 fi
14
15
16 # **** Make a directory to build up a distribution tree
17
18 DEST=wxPython-$1/docs
19
20 mkdir -p _build_docs/$DEST
21 cd _build_docs
22 mkdir $DEST/wx
23 mkdir $DEST/ogl
24
25 WXDIR=../..
26
27 # **** Build the docs using tex2rtf
28 cp $WXDIR/docs/latex/wx/*.gif $DEST/wx
29 $WXDIR/utils/tex2rtf/src/tex2rtf $WXDIR/docs/latex/wx/manual.tex $DEST/wx/wx.htm -twice -html
30 cp $DEST/wx/wx.htm $DEST/wx/index.htm
31
32 cp $WXDIR/contrib/docs/latex/ogl/*.gif $DEST/ogl
33 cp $WXDIR/contrib/docs/latex/ogl/*.bmp $DEST/ogl
34 $WXDIR/utils/tex2rtf/src/tex2rtf $WXDIR/contrib/docs/latex/ogl/ogl.tex $DEST/ogl/ogl.htm -twice -html
35 cp $DEST/ogl/ogl.htm $DEST/ogl/index.htm
36
37
38 # **** zip the docs into "books"
39 pushd $DEST
40 pushd wx
41 zip ../wx.zip *
42 popd
43 rm -r wx
44
45 pushd ogl
46 zip ../ogl.zip *
47 popd
48 rm -r ogl
49
50 popd
51 cp ../distrib/viewdocs.py $DEST
52 cp ../distrib/README.viewdocs.txt $DEST/README.txt
53
54 rm -f ../dist/wxPythonDocs-$1.tar.gz
55 tar cvf ../dist/wxPythonDocs-$1.tar $DEST
56 gzip -9 ../dist/wxPythonDocs-$1.tar
57
58
59 # **** Cleanup
60 cd ..
61 rm -r _build_docs
62
63