#!/bin/sh # # A sub-script to determine the path to the Release scripts # # The only argument is the '$0' of the referring script. # ECHO=/bin/echo CDF_CVSROOT=":pserver:anonymous@cdfcvs.fnal.gov:/cdf/code/cdfcvs/run2" CDF_HOME=`bash -c "eval echo \~cdfsoft"` name=${1} script=`basename $1` if [ -f ${CDF_HOME}/cdf2.shrc ] then . ${CDF_HOME}/cdf2.shrc else SRT_DIST=${CDF_HOME}/dist fi [ -d /tmp/${script}.${USER} ] && rm -r /tmp/${script}.${USER} if [ -f $SRT_DIST/releases/development/Release/Scripts/${script} ] then ${ECHO} $SRT_DIST/releases/development/Release/Scripts exit 0 fi mkdir /tmp/${script}.${USER} cd /tmp/${script}.${USER} cvs -d $CDF_CVSROOT -Q checkout Release/Scripts if [ ! -f Release/Scripts/${script} ] then ${ECHO} "" exit 1 fi ${ECHO} /tmp/${script}.${USER}/Release/Scripts