Mercurial > hg > vamp-build-and-test
view SCRIPTS/update-all.sh @ 93:99f91ceb1aa9
Add Dockerfile for assembling a build image
author | Chris Cannam |
---|---|
date | Tue, 14 Apr 2015 17:16:34 +0100 |
parents | 3308317239fe |
children | 5addbcdc2e87 |
line wrap: on
line source
#!/bin/bash # Run this from the top-level vamp-build-and-test directory cat .hgsub | awk '{ print $1 }' | while read x; do if [ -d "$x"/.hg ]; then ( cd $x ; hg pull && hg update ) elif [ -d "$x"/.git ]; then ( cd $x ; git pull ) else url=$(grep "^$x " .hgsub | awk '{ print $3; }') hg clone "$url" "$x" fi done