2004-04-30 02:28:54 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
2006-09-09 15:41:51 -04:00
|
|
|
set -o xtrace
|
|
|
|
|
2004-04-30 02:28:54 -04:00
|
|
|
if [ ! -d wxPython ]; then # TODO: make this test more robust
|
|
|
|
echo "Please run this script from the root wxPython directory."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2004-07-21 21:01:58 -04:00
|
|
|
VERSION=`python -c "import setup;print setup.VERSION"`
|
2004-04-30 02:28:54 -04:00
|
|
|
|
2004-07-21 21:01:58 -04:00
|
|
|
|
|
|
|
# cleanup old build
|
2004-04-30 02:28:54 -04:00
|
|
|
rm -r docs/api/*
|
|
|
|
|
2004-07-21 21:01:58 -04:00
|
|
|
# build the docs
|
2004-06-04 19:21:22 -04:00
|
|
|
export PTYHONPATH=$PWD
|
2006-10-19 17:40:33 -04:00
|
|
|
/opt/python/bin/epydoc --name "wxPython $VERSION" \
|
2004-04-30 02:28:54 -04:00
|
|
|
--html \
|
|
|
|
--output docs/api \
|
|
|
|
--ignore-param-mismatch \
|
|
|
|
--inheritance none \
|
|
|
|
--no-expand-subpackages \
|
|
|
|
--no-private \
|
|
|
|
--css docs/wxPython-epydoc.css \
|
|
|
|
--docformat restructuredtext \
|
2004-06-04 19:21:22 -04:00
|
|
|
--url http://wxPython.org/ \
|
|
|
|
--no-frames \
|
2004-04-30 02:28:54 -04:00
|
|
|
$* \
|
2005-05-24 16:55:42 -04:00
|
|
|
wxversion/wxversion.py \
|
2004-06-04 19:21:22 -04:00
|
|
|
wx
|
|
|
|
|
|
|
|
# wx/__init__.py \
|
|
|
|
|
|
|
|
# wx/calendar.py wx/grid.py wx/html.py wx/wizard.py \
|
|
|
|
# wx/gizmos.py wx/ogl.py wx/stc.py wx/xrc.py
|
|
|
|
|
2004-04-30 02:28:54 -04:00
|
|
|
|
|
|
|
# --no-frames \
|
|
|
|
# --docformat epytext \
|
|
|
|
# --debug \
|
2004-06-04 19:21:22 -04:00
|
|
|
# --inheritance grouped \
|
2006-09-09 15:41:51 -04:00
|
|
|
# --inheritance none \
|
|
|
|
|
2006-10-19 17:40:33 -04:00
|
|
|
|
|
|
|
|
2006-09-09 15:41:51 -04:00
|
|
|
python docs/bin/BuildAPIHelpBook.py wxpyapi docs/api
|
2004-04-30 02:28:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
# TODO:
|
|
|
|
# 1. Should rebuild the top-level docs too (but we need more of them first!)
|
|
|
|
|
|
|
|
|
2004-07-21 21:01:58 -04:00
|
|
|
|
|
|
|
# bundle it all up into a tarball
|
|
|
|
DEST=wxPython-$VERSION/docs
|
|
|
|
mkdir -p _build_docs/$DEST
|
|
|
|
cp -R --link docs/api _build_docs/$DEST
|
|
|
|
cd _build_docs
|
2006-06-10 20:13:05 -04:00
|
|
|
rm -f ../dist/wxPython-newdocs-$VERSION.tar.bz2
|
2004-10-09 20:48:34 -04:00
|
|
|
tar cf ../dist/wxPython-newdocs-$VERSION.tar $DEST
|
2006-06-10 20:13:05 -04:00
|
|
|
bzip2 -9 ../dist/wxPython-newdocs-$VERSION.tar
|
2004-07-21 21:01:58 -04:00
|
|
|
|
|
|
|
# Cleanup
|
|
|
|
cd ..
|
|
|
|
rm -r _build_docs
|
|
|
|
|