#!/bin/bash for d in `svn ls http://svn.habariproject.org/habari-extras/plugins`; do if [ $1 = "ci" ] then echo "checking in $d" svn ci -q $d -m"coding style fixes. mad props to scoates for the tokenizer foo!"& else if [ -d $d ]; then echo "updating $d" svn up -q $d& else echo "checking out $d" svn co -q https://svn.habariproject.org/habari-extras/plugins/$d/trunk $d& fi fi done echo "done!"