#!/bin/sh

# $Id$

dir=`mktemp -d`
[ -z "$dir" ] && exit 1

/usr/bin/svn -q co http://nanardon.homelinux.org/svn/documentation/trunk/subversion $dir

(
cd $dir
make >/dev/null 2>&1 && \
[ -f subversion.pdf ] && /usr/bin/rsync -qP subversion.pdf ~nanardon/public_html/
)

rm -fr $dir
