view SCRIPTS/update-all.sh @ 84:3308317239fe

Handle git subrepos
author Chris Cannam
date Wed, 07 Jan 2015 09:59:18 +0000
parents c4ee2ab22c38
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