#!/bin/sh base_dir=$(dirname "$(readlink -f "$0")") find "${base_dir}/work/repositories/git" \ -mindepth 1 \ -maxdepth 1 \ -type d \ -exec git -C {} remote update \; find "${base_dir}/work/repositories/hg" \ -mindepth 1 \ -maxdepth 1 \ -type d \ -exec hg --cwd {} pull \;