]>
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
22 INI
=$WXDIR/docs
/latex
/wx
/tex2rtf.ini
24 # **** Build the main docs using tex2rtf
25 echo "****" main
"****"
26 cp $WXDIR/docs
/latex
/wx
/*.gif
$DEST/wx
27 cp $WXDIR/docs
/latex
/wx
/*.css
$DEST/wx
28 tex2rtf
$WXDIR/docs
/latex
/wx
/manual.tex
$DEST/wx
/wx.html
-twice -html -macros $INI
29 cp $DEST/wx
/wx_contents.html
$DEST/wx
/index.html
30 cp $DEST/wx
/* $WXDIR/docs
/html
/wx
32 # **** and the contribs
33 for c
in $CONTRIBS; do
36 cp $WXDIR/contrib
/docs
/latex
/$c/*.gif
$DEST/$c
37 cp $WXDIR/contrib
/docs
/latex
/$c/*.bmp
$DEST/$c
38 tex2rtf
$WXDIR/contrib
/docs
/latex
/$c/$c.tex
$DEST/$c/$c.html
-twice -html -macros $INI
39 cp $DEST/$c/$c.html
$DEST/$c/index.html
|| cp $DEST/$c/${c}_contents.html
$DEST/$c/index.html
43 # **** zip the docs into "books"
50 for c
in $CONTRIBS; do
58 cp ..
/distrib
/viewdocs.py
$DEST
59 cp ..
/distrib
/README.viewdocs.txt
$DEST/README.txt
60 ##cp ../docs/xml/wxPython-metadata.xml $DEST
62 rm -f ..
/dist
/wxPython
-docs-$VERSION.
tar.gz
63 tar cvf ..
/dist
/wxPython
-docs-$VERSION.
tar $DEST
64 gzip -9 ..
/dist
/wxPython
-docs-$VERSION.
tar