cb56afc421
* restructuring of installer packages * MSW build can use either MONOLITHIC or multi-lib wx build git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
62 lines
1.3 KiB
Bash
Executable File
62 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
if [ ! -d wxPython ]; then # TODO: make this test more robust
|
|
echo "Please run this script from the root wxPython directory."
|
|
exit 1
|
|
fi
|
|
|
|
VERSION=`python -c "import setup;print setup.VERSION"`
|
|
|
|
|
|
# cleanup old build
|
|
rm -r docs/api/*
|
|
|
|
# build the docs
|
|
export PTYHONPATH=$PWD
|
|
epydoc --name wxPython \
|
|
--html \
|
|
--output docs/api \
|
|
--ignore-param-mismatch \
|
|
--inheritance none \
|
|
--no-expand-subpackages \
|
|
--no-private \
|
|
--css docs/wxPython-epydoc.css \
|
|
--docformat restructuredtext \
|
|
--url http://wxPython.org/ \
|
|
--no-frames \
|
|
$* \
|
|
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
|
|
|
|
|
|
# --no-frames \
|
|
# --docformat epytext \
|
|
# --debug \
|
|
# --inheritance grouped \
|
|
|
|
|
|
# TODO:
|
|
# 1. Should rebuild the top-level docs too (but we need more of them first!)
|
|
|
|
|
|
|
|
# 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
|
|
rm -f ../dist/wxPython-newdocs-$VERSION.tar.gz
|
|
tar cf ../dist/wxPython-newdocs-$VERSION.tar $DEST
|
|
gzip -9 ../dist/wxPython-newdocs-$VERSION.tar
|
|
|
|
# Cleanup
|
|
cd ..
|
|
rm -r _build_docs
|
|
|