1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/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 \;