Mercurial > hg > vamp-build-and-test
diff update-all.sh @ 5:57da88814766
Run tester, report
author | Chris Cannam |
---|---|
date | Sat, 26 Jul 2014 10:50:24 +0100 |
parents | e3a9ff791a5e |
children |
line wrap: on
line diff
--- a/update-all.sh Sat Jul 26 10:20:17 2014 +0100 +++ b/update-all.sh Sat Jul 26 10:50:24 2014 +0100 @@ -1,4 +1,9 @@ #!/bin/bash cat .hgsub | awk '{ print $1 }' | while read x; do - ( cd $x ; hg pull && hg update ) + if [ -d "$x" ]; then + ( cd $x ; hg pull && hg update ) + else + url=$(grep "^$x " .hgsub | awk '{ print $3; }') + hg clone "$url" "$x" + fi done