Sample Upgrade Script (cont.)
if [ "$InfoLevel" -gt "$Silent" ]
/bin/echo "UpdateClearCase - Machine out of date relative to release area, starting update"
# First make sure we can get to the site.dat file
SiteDatFile=$ReleaseArea/site.dat
/bin/echo "*******************************************************"
/bin/echo "* Problem Detected by UpdateClearCase *"
/bin/echo "* Unable to get to the release site.dat: $SiteDatFile *"
/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 site.dat: $SiteDatFile" ) | \
Mail -s "UpdateClearCase Problem Detected" $MailDest