get_fai_cvs() { # subroutine which gets $FAI (/fai) configuration directory from # a cvs repository. You can redefine this subroutine if you need # access via ftp, http, or from a database if [ "$FAI_CVSROOT" ] ; then local TAG="" echo "Checking out CVS" [ -n "$FAI_CVSTAG" ] && TAG="-r $FAI_CVSTAG" export FAI_CONFIG_AREA=$FAI export FAI=/tmp/$(basename $FAI_CONFIG_AREA) [ "$debug" ] && echo "\$FAI now points to $FAI" if [ -d "$FAI_CONFIG_AREA" -a -z "$DONTCOPYCVS" ] ; then echo "Config found at $FAI_CONFIG_AREA: Copying" cp -a $FAI_CONFIG_AREA $FAI echo "Updating CVS" fi cd /tmp cvs -q -d"$FAI_CVSROOT" co -P -d $(basename "$FAI") \ $TAG $FAI_CVSMODULE > $LOGDIR/cvs.log else echo "Warning $0: Neither \$FAI_LOCATION nor \$FAI_CVSROOT are defined." fi }