Build and install the core software

Check the config.log for the previous version in /usr/local/src/subversion-<previous version>

./configure --prefix=/usr/local/subversion-1.3.1 --with-swig=/usr/local/swig-1.3.21 --with-berkeley-db=/usr/local/BerkeleyDB.4.2 --with-apxs=/usr/local/apache-2.0.49-ssl/bin/apxs --enable-javahl --with-ssl
make
make javahl
make swig-pl swig-py swig-rb
make install install-javahl install-swig-pl install-swig-py install-swig-rb
cp -R tools /usr/local/subversion-1.3.1/share/
rm /usr/local/subversion
ln -s /usr/local/subversion-1.3.1 /usr/local/subversion
ln -s /usr/bin/svnnotify /usr/local/subversion/bin/svnnotify
chmod go+rx /usr/local/subversion/share/tools/
chmod go+rx /usr/local/subversion/share/tools/hook-scripts/
/usr/local/apache-2/bin/apachectl graceful

Reduce the number of backups

Edit /usr/local/subversion-1.3.1/share/tools/backup/hotbackup.py and change the num_backups line from 64 to 3 (otherwise we run out of space too easily)