# HG changeset patch # User Chris Cannam # Date 1420624758 0 # Node ID 3308317239fe902039dfb70872c3f232c76060f6 # Parent 6ec718f3f42ceed0abeadf1c09ad128325b337b8 Handle git subrepos diff -r 6ec718f3f42c -r 3308317239fe SCRIPTS/update-all.sh --- a/SCRIPTS/update-all.sh Wed Jan 07 09:47:53 2015 +0000 +++ b/SCRIPTS/update-all.sh Wed Jan 07 09:59:18 2015 +0000 @@ -3,8 +3,10 @@ # Run this from the top-level vamp-build-and-test directory cat .hgsub | awk '{ print $1 }' | while read x; do - if [ -d "$x" ]; then + 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"