#!/bin/bash ###################################################################### # get_perdition_cvs October 2000 # Horms horms at vergenet dot net # # Checkout and/or update the perdition, libvanessa_adt, # libvanessa_socket and libvanessa_logger trees. This should # provide all CVS code for perdition. # # perdition # Mail retreival proxy server # Copyright (C) 1999 Horms # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA # 02111-1307 USA # ###################################################################### # Echo a message to stdout # Arguments: none message () { echo echo "*** $* ***" echo } # Login to a CVS repository # Arguments: $1: CVSROOT of repository # $2: Short name for repository used for loging messages cvs_login () { local tree="$1" local name="$2" export CVSROOT="$1" message "Logging into $name CVS Tree. At the login prompt hit enter" cvs login } # Retrieve a CVS module # Will do a cvs checkout if module's directory isn't present # Will do a cvs update otherwise # cvs_login should be called to login to the repository # Arguments: $1: Module to check out. get_tree () { local module="$1" if [ -d "$module" ]; then message "$module directory exists, updating tree" cvs -z3 update -dP "$module" else message "$module directory does not exist, checking out tree" echo cvs -z3 checkout "$module" fi } cvs_login \ ":pserver:anonymous@vanessa.cvs.sourceforge.net:/cvsroot/vanessa" \ "VAnessa" get_tree "vanessa_adt" get_tree "vanessa_socket" get_tree "vanessa_logger" cvs_login \ ":pserver:anonymous@perdition.cvs.sourceforge.net:/cvsroot/perdition" \ "perdition" get_tree "perdition" get_tree "perdition-pbs" message "Perdition and support libraries are now checked out" cat << __EOF__ Build and install in order, vanessa_logger, vanessa_adt, vanessa_socket and perdition. To Build and Install: cd