Chris@0: #!/bin/bash Chris@0: cat .hgsub | awk '{ print $1 }' | while read x; do Chris@5: if [ -d "$x" ]; then Chris@5: ( cd $x ; hg pull && hg update ) Chris@5: else Chris@5: url=$(grep "^$x " .hgsub | awk '{ print $3; }') Chris@5: hg clone "$url" "$x" Chris@5: fi Chris@0: done