]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/distrib/makedocs
use PROOF_QUALITY in LOGFONT by default
[wxWidgets.git] / wxPython / distrib / makedocs
... / ...
CommitLineData
1#!/bin/bash
2
3#----------------------------------------------------------------------
4
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
11VERSION=`python -c "import setup;print setup.VERSION"`
12CONTRIBS="gizmos"
13DEST=wxPython-$VERSION/docs
14
15
16# **** Make a directory to build up a distribution tree
17mkdir -p _build_docs/$DEST
18cd _build_docs
19mkdir $DEST/wx
20DEST=`abspath.py $DEST`
21
22WXDIR=`abspath.py ../..`
23INI=$WXDIR/docs/latex/wx/tex2rtf_css.ini
24
25# **** Build the main docs using tex2rtf
26echo "****" main "****"
27cp $WXDIR/docs/latex/wx/*.gif $DEST/wx
28cp $WXDIR/docs/latex/wx/*.css $DEST/wx
29echo tex2rtf $WXDIR/docs/latex/wx/manual.tex $DEST/wx/wx.html -twice -html -macros $INI
30tex2rtf $WXDIR/docs/latex/wx/manual.tex $DEST/wx/wx.html -twice -html -macros $INI
31cp $DEST/wx/wx_contents.html $DEST/wx/index.html
32cp $DEST/wx/* $WXDIR/docs/html/wx
33
34# **** and the contribs
35for c in $CONTRIBS; do
36 echo "****" $c "****"
37 mkdir $DEST/$c
38 cp $WXDIR/contrib/docs/latex/$c/*.gif $DEST/$c
39 cp $WXDIR/contrib/docs/latex/$c/*.bmp $DEST/$c
40 tex2rtf $WXDIR/contrib/docs/latex/$c/$c.tex $DEST/$c/$c.html -twice -html -macros $INI
41 #tex2rtf $WXDIR/contrib/docs/latex/$c/manual.tex $DEST/$c/$c.html -twice -html -macros $INI
42 cp $DEST/$c/$c.html $DEST/$c/index.html || cp $DEST/$c/${c}_contents.html $DEST/$c/index.html
43done
44
45
46# **** zip the docs into "books"
47pushd $DEST
48pushd wx
49zip ../wx.zip *
50popd
51rm -r wx
52
53for c in $CONTRIBS; do
54 pushd $c
55 zip ../$c.zip *
56 popd
57 rm -r $c
58done
59
60popd
61cp ../distrib/viewdocs.py $DEST
62cp ../distrib/README.viewdocs.txt $DEST/README.txt
63##cp ../docs/xml/wxPython-metadata.xml $DEST
64
65rm -f ../dist/wxPython-docs-$VERSION.tar.bz2
66tar cvf ../dist/wxPython-docs-$VERSION.tar wxPython-$VERSION
67bzip2 -9 ../dist/wxPython-docs-$VERSION.tar
68
69
70# **** Cleanup
71cd ..
72rm -r _build_docs
73
74