#!/bin/sh
echo 'fetching and building serf trunk'
svn co http://serf.googlecode.com/svn/trunk serf || exit 1
cd serf
./serfmake --prefix=/opt/durin install || exit 3

echo 'fetching and building svn trunk with swig-py'
svn co http://svn.collab.net/repos/svn/trunk subversion || exit 4
cd subversion
./autogen.sh && ./configure --without-apxs --without-sasl \
 --with-serf=/opt/durin --without-neon --prefix=/opt/durin || exit 5
make -j 4 && make install && make swig-py && make install-swig-py || exit 6
