From bc1825091570ac350e632219fe64f13cc0cb038f Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 22 Jul 2004 01:01:58 +0000 Subject: [PATCH] build a tarball when building the new docs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/docs/bin/makeapidocs | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/wxPython/docs/bin/makeapidocs b/wxPython/docs/bin/makeapidocs index 27e3d6713a..95b5b15b1b 100755 --- a/wxPython/docs/bin/makeapidocs +++ b/wxPython/docs/bin/makeapidocs @@ -7,11 +7,14 @@ if [ ! -d wxPython ]; then # TODO: make this test more robust 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 \ @@ -40,7 +43,19 @@ epydoc --name wxPython \ # TODO: # 1. Should rebuild the top-level docs too (but we need more of them first!) -# 2. bundle it all up into a tarball -# 3. etc. + +# 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/wxPythonNewDocs-$VERSION.tar.gz +tar cf ../dist/wxPythonNewDocs-$VERSION.tar $DEST +gzip -9 ../dist/wxPythonNewDocs-$VERSION.tar + +# Cleanup +cd .. +rm -r _build_docs + -- 2.47.2