#!/bin/sh

##
# Copy the CVS repository
##
# Wilfredo Sanchez | wsanchez@mit.edu
##

#set -e # exit on error
set -u # undefined variable is an error

Destination='/afs/sipb/project/darwin/src/repository'

rsync -a "$@"				\
      --password-file=.password		\
      --exclude=CVSROOT			\
      --exclude=OBSOLETE_PROJECTS	\
      --exclude=Commands		\
      --exclude=Interfaces		\
      --exclude=Libraries		\
      --exclude=Networking		\
      --exclude=Ports			\
      --exclude=Scripting		\
      --exclude=Services		\
      rsync://sipb@anoncvs.opensource.apple.com/cvs/ "${Destination}"
