2 # Check out or update a SVN repository
10 # Simple case - the repository doesn't exist
12 if [ ! -d $DIR/.svn
]; then
14 svn co
-r $REV $URL ||
{
15 echo "Couldn't get the repository."
22 CURREV
=`svn info $DIR | grep "Last Changed Rev" | awk '{ print $4 }'`
24 if [ $CURREV -ne $REV ]; then
26 svn update
-r $REV $URL ||
{
27 echo "Couldn't update the repository."