]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/makedocs
3 #----------------------------------------------------------------------
5 if [ ! -d wxPython
]; then # TODO: make this test more robust
6 echo "Please run this script from the root wxPython directory."
11 VERSION
=`python -c "import setup;print setup.VERSION"`
13 DEST
=wxPython
-$VERSION/docs
16 # **** Make a directory to build up a distribution tree
17 mkdir -p _build_docs
/$DEST
20 DEST
=`abspath.py $DEST`
22 WXDIR
=`abspath.py ../..`
23 INI
=$WXDIR/docs
/latex
/wx
/tex2rtf_css.ini
25 # **** Build the main docs using tex2rtf
26 echo "****" main
"****"
27 cp $WXDIR/docs
/latex
/wx
/*.gif
$DEST/wx
28 cp $WXDIR/docs
/latex
/wx
/*.css
$DEST/wx
29 echo tex2rtf
$WXDIR/docs
/latex
/wx
/manual.tex
$DEST/wx
/wx.html
-twice -html -macros $INI
30 tex2rtf
$WXDIR/docs
/latex
/wx
/manual.tex
$DEST/wx
/wx.html
-twice -html -macros $INI
31 cp $DEST/wx
/wx_contents.html
$DEST/wx
/index.html
32 cp $DEST/wx
/* $WXDIR/docs
/html
/wx
34 # **** and the contribs
35 for c
in $CONTRIBS; do
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
46 # **** zip the docs into "books"
53 for c
in $CONTRIBS; do
61 cp ..
/distrib
/viewdocs.py
$DEST
62 cp ..
/distrib
/README.viewdocs.txt
$DEST/README.txt
63 ##cp ../docs/xml/wxPython-metadata.xml $DEST
65 rm -f ..
/dist
/wxPython
-docs-$VERSION.
tar.bz2
66 tar cvf ..
/dist
/wxPython
-docs-$VERSION.
tar wxPython
-$VERSION
67 bzip2 -9 ..
/dist
/wxPython
-docs-$VERSION.
tar