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