#!/bin/sh find .|grep .svn|cut -f2 -d/|sort|uniq|xargs -l1 svn up find .|grep .git|cut -f2 -d/|sort|uniq|sed -e "s/^\(.*\)$/cd \1 ; git pull ; cd ../g"|sh find .|grep .hg|cut -f2 -d/|sort|uniq|sed -e "s/^\(.*\)$/cd \1 ; hg pull ; cd ../g"|sh