SVK auto-setup

Just copy/paste that script and execute it :)

#!/bin/bash
svn=svn+ssh://rsbac.org/daten/subversion
repos="rsbac-2.6 rsbac-2.4 rsbac-admin rsbac-apache rsbac-misc rsbac-python"
 
[ -d $HOME/.svk ] && {
        echo "You already have a svk configuration in $HOME/.svk"
        echo "Please remove it before proceeding. Backup any data you need."
        exit 1
}
 
echo "Please reply y if you want a default repository (safe to say yes, takes low disk space)"
svk depot -i
echo "Please enter the directory path to store your depots:"
echo -n "[$HOME/.svk]: "
read path
[ "$path" == "" ] && path="$HOME/.svk"
[ -d "$path" ] || {
        echo "Error: Not a directory"
        exit 1
}
echo "Creating the RSBAC depot"
echo "=> Just say y once :)"
svk depot rsbac $path/rsbac
echo -n "Creating mirrors: "
for rep in $repos; do
        echo -n "$rep... "
        svk mirror $svn/$rep /rsbac/$rep > /dev/null
done
echo "done"
 
echo "Syncing all mirrors [this may take a long time]..."
svk sy -a
 
echo "All done! Summary:"
svk depot -l
svk ls /rsbac/