Τρίτη, Φεβρουαρίου 06, 2007

New ClearCase element notification mail

In case of a new element in a non master replica (so no check in trigger).
Credits to my German colleague Mr. Birkl !

#!/usr/bin/tcsh
/usr/atria/bin/cleartool setview ccadmin_unix <<EOT
cd /dip/swteam/Practice
/usr/atria/bin/cleartool lshis -since yesterday.15:15 hello > /tmp/notify_hello$$.txt
if test -s /tmp/notify_hello$$.txt
then
mailx -s "+++++ Recent hello Updates +++++" panagiotis.hatzigiannis@XXX.com < /tmp/notify_hello$$.txt
rm -f /tmp/notify_hello$$.txt
fi
EOT

It sure need to be "polished" but does the job.

Δεν υπάρχουν σχόλια: