]>
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
15 # **** Make a directory to build up a distribution tree
16 mkdir -p _build_docs
/$DEST
22 # **** Build the main docs using tex2rtf
23 echo "****" main
"****"
24 cp $WXDIR/docs
/latex
/wx
/*.gif
$DEST/wx
25 $WXDIR/utils
/tex
2rtf
/src
/tex2rtf
$WXDIR/docs
/latex
/wx
/manual.tex
$DEST/wx
/wx.html
-twice -html -macros $WXDIR/docs
/latex
/wx
/tex2rtf.ini
26 cp $DEST/wx
/wx_contents.html
$DEST/wx
/index.html
27 cp $DEST/wx
/* $WXDIR/docs
/html
/wx
29 # **** and the contribs
30 for c
in $CONTRIBS; do
33 cp $WXDIR/contrib
/docs
/latex
/$c/*.gif
$DEST/$c
34 cp $WXDIR/contrib
/docs
/latex
/$c/*.bmp
$DEST/$c
35 $WXDIR/utils
/tex
2rtf
/src
/tex2rtf
$WXDIR/contrib
/docs
/latex
/$c/$c.tex
$DEST/$c/$c.html
-twice -html -macros $WXDIR/docs
/latex
/wx
/tex2rtf.ini
36 cp $DEST/$c/$c.html
$DEST/$c/index.html
|| cp $DEST/$c/${c}_contents.html
$DEST/$c/index.html
40 # **** zip the docs into "books"
47 for c
in $CONTRIBS; do
55 cp ..
/distrib
/viewdocs.py
$DEST
56 cp ..
/distrib
/README.viewdocs.txt
$DEST/README.txt
58 rm -f ..
/dist
/wxPythonDocs
-$VERSION.
tar.gz
59 tar cvf ..
/dist
/wxPythonDocs
-$VERSION.
tar $DEST
60 gzip -9 ..
/dist
/wxPythonDocs
-$VERSION.
tar