Release Instructions
====================

Notes
-----

The following instructions are appropriate for version 3.2.0.
Adjust accordingly for a different version.

The current version/date is in src/include/version.h

You will need to have TeTeX installed and the python source code 
to produce the documentation.

Instructions
------------

REPOS=http://svn.apache.org/repos/asf/httpd/mod_python

1. Create the new branch for the release in svn repository.
   svn copy --username USER  --password PASS $REPOS/trunk $REPOS/tags/release-3-2-0 -m "Tagged for release"

2. Checkout a working copy of the new branch.
   cd /tmp
   svn co $REPOS/tags/release-3-2-0 mod_python

3. Update the version information.
   cd /tmp/mod_python/src/include/
     Change the following in mpversion.h: 
       MPV_MAJOR
       MPV_MINOR
       MVP_PATCH 
       MVP_STRING

   cd /tmp/mod_python/lib/python/mod_python
     In __init__.py change
       version
   
   Once you've update the version information, checkin the changes with
   cd /tmp/mod_python
   svn ci -m "updated version infomation"

4. Generate the html docs.
   cd mod_python
   ./configure --with-apxs=`which apxs` --with-python-src=/path/to/python/src
   cd Doc
   make dist

5. Export a working copy to a release copy.
   cd /tmp 
   svn export mod_python mod_python-3.2.0

6. Copy the html docs generated in step 3 from your working copy to
   your release copy.
   cp -r mod_python/doc-html/ mod_python-3.2.0/

7. Create a tarball for the release.
   tar czvf mod_python-3.2.0.tgz mod_python-3.2.0

8. Generate the pdf file for the website
   cd mod_python/Doc
   make pdf

9. Send Doc/modpython.pdf to the mod_python.org website admin.


Hints
-----

To sign: gpg -a -b mod_python-3.2.0.win32-py2.3.exe

