# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ export GENTOO_CVS_MODULES="gentoo gentoo-src gentoo-x86" source /sbin/functions.sh ssh22() { /usr/bin/ssh -p 22 $@ } # List of modules to check out from gentoo cvs server. export CVSROOT=:ext:$USER@cvs.gentoo.org:/home/cvsroot export CVS_RSH=ssh22 # [ -n "${USER}" ] for module in ${GENTOO_CVS_MODULES}; do if [ -d "./${module}" ] ; then einfo "Updating module ${module}" cd ${module} || die "Error changing dir to ${module}" cvs -z4 -q update || die "Error updating ${module} from ${CVSROOT}" cd .. else [ ! -d "./${module}" ] && echo cvs -P co ${module} fi done