Revision 98 (by dpavlin, 2008/11/03 19:23:41) move log to log.old before overwrite
#!/bin/sh

test -f log && mv log log.old

(

ls -d */CVS | sed 's#/CVS##' | while read rep ; do
	echo "update $rep [cvs]"
	cd $rep && cvs -q -z3 update -d || echo "FATAL ERROR!"
	cd -
done

ls -d */.svn | sed 's#/.svn##' | while read rep ; do
	echo "update $rep [svn]"
	cd $rep && svn update || echo "FATAL ERROR!"
	cd -
done

ls -d */.git | sed 's#/.git##' | while read rep ; do
	echo "update $rep [git]"
	cd $rep && git pull || ./update.sh || echo "FATAL ERROR!"
	ln -sf `pwd`/.git /var/cache/git/$rep.git || echo "ERROR: can't update symlink to gitweb"
	cd -
done

ls -d */_darcs | sed 's#/_darcs##' | while read rep ; do
	echo "update $rep [darcs]"
	cd $rep && darcs pull -a || echo "FATAL ERROR!"
	cd -
done

ls -d */.bzr | sed 's#/.bzr##' | while read rep ; do
	echo "update $rep [bzr]"
	cd $rep && bzr update || echo "FATAL ERROR!"
	cd -
done

ls -d */.hg | sed 's#/.hg##' | while read rep ; do
	echo "update $rep [mercurial]"
	cd $rep && hg pull && hg update || echo "FATAL ERROR!"
	cd -
done

) 2>&1 | tee log | grep -v '^?'