Mercurial > hg > vamp-build-and-test
view SCRIPTS/update-all.sh @ 97:1c31fd7b4cb5
Update docker file and subrepos
author | Chris Cannam |
---|---|
date | Wed, 12 Aug 2015 15:25:15 +0100 |
parents | 5addbcdc2e87 |
children | 793467b5e61c |
line wrap: on
line source
#!/bin/bash # Run this from the top-level vamp-build-and-test directory cat .hgsub | grep -v '^#' | 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