#! /bin/bash confdir=$(dirname $(readlink -m $0)) cd confdir=${confdir#$PWD/} svn up $confdir || exit 1 find $confdir -mindepth 1 -maxdepth 1 -not -name ".svn" \ -and -not -name "update" -printf '%f\n' | while read f; do if [ ! -e "$f" -o -L "$f" ]; then ln -v -s -f "$confdir/$f" "." else echo "~/$f is not a symlink; move it out of the way" fi done