Hi guys, A little help required for an svn hook file. At the moment I have a post-commit hook file that runs an update of multiple working copies to a development server (we are talking php, mysql websites here) when one a developer checks in some code from his machine. This is working really well and allows us to hand out links to clients so they can see the most up to date version of the site they are interested in. As the number of projects increases the post commit is getting slower and slower. It is just running this command for each project. svn update http://server/svn/trunk/projectname /var/www/projectname/ I've had a go at writing some sort of script to see which directory in the repository has been affected and then only update the corresponding project but it doesn't work. This is my first attempt at scripting in linux. Here is some of the attempt I have made. Code: REPOS="$1" REV="$2" DIRLIST=`svnlook dirs-changed -r "$REV" "$REPOS"` if [ $(expr index "$DIRLIST" "p1") -ge "1" ]; then svn update http://server/svn/branches/p1 /var/www/p1/ elif [ $(expr index "$DIRLIST" "trunk/p2") -ge "1" ]; then svn update http://server/svn/trunk/p2 /var/www/p2/ fi DIRLIST seems to be correctly populated with the list of updated directories but further than that nothing gets matched. Any Ideas for fixing that, or are there better ways to approach the problem? Thanks Nick