From: John L. <mov...@us...> - 2003-06-11 18:39:55
|
Update of /cvsroot/oprofile/CVSROOT In directory sc8-pr-cvs1:/tmp/cvs-serv16314 Modified Files: cia Log Message: username in both lastlog files, remove the chmod Index: cia =================================================================== RCS file: /cvsroot/oprofile/CVSROOT/cia,v retrieving revision 1.4 retrieving revision 1.5 diff -u -p -d -r1.4 -r1.5 --- cia 11 Jun 2003 16:55:35 -0000 1.4 +++ cia 11 Jun 2003 18:39:52 -0000 1.5 @@ -57,22 +57,18 @@ Subject: Announce $projectname commit by {yellow}$uname{normal} to {green}$module{normal}: $message EOF -if [ -e /tmp/lastlog-$projectname ]; then - if ! diff /tmp/lastlog-$projectname $tmpfile &>/dev/null; then +if [ -e /tmp/lastlog-$uname-$projectname ]; then + if ! diff /tmp/lastlog-$uname-$projectname $tmpfile &>/dev/null; then # there are differences, so this is a different commit cat $tmpfile | /usr/sbin/sendmail -t - mv $tmpfile /tmp/lastlog-$projectname - # To ensure that the next person to commit will be able to overwrite - chmod a+w /tmp/lastlog-$projectname + mv $tmpfile /tmp/lastlog-$uname-$projectname else # it's just cvs spamming us from another directory rm $tmpfile fi else cat $tmpfile | /usr/sbin/sendmail -t - mv $tmpfile /tmp/lastlog-$projectname - # To ensure that the next person to commit will be able to overwrite - chmod a+w /tmp/lastlog-$projectname + mv $tmpfile /tmp/lastlog-$uname-$projectname fi echo "done." |