Sample Upgrade Script (cont.)
# compare (diff) the two cdf dirs (the local and the install source area
# to see in we need to do an install
if [ ! -d $InstallCDFDir ]
# the Install Area cdf directory is missing, report and abort
/bin/echo "*******************************************************"
/bin/echo "* Problem Detected by UpdateClearCase *"
/bin/echo "* Unable to get to the release cdf: $InstallCDFDir *"
/bin/echo "* skipping update and sending email *"
/bin/echo "*******************************************************"
( /bin/echo "UpdateClearCase: Problem Detected" ; \
/bin/echo "Machine Name: $MachName" ; \
/bin/echo "Problem Description: Unable to get to the release cdf dir: $InstallCDFDir" ) | \
Mail -s "UpdateClearCase Problem Detected" $MailDest