how about:

    Blat $1 -s "CVS notification" -t `grep ^$user:
uid-to-group-email.txt |awk -F: '{print $2}'`?

It might be slightly less maintenance to associate a UNIX group the user
is a member of with the project email their changes cause mail to be
sent to.  That might be slightly more complicated if a user is a member
of more than one group.

Why not just pass a project email into the script depending on what dir
the commit was to?  Like so:

    project1     bash $CVSROOT/CVSROOT/cvs-log
$CVSROOT/CVSROOT/updatelog \
[EMAIL PROTECTED]
    project2     bash $CVSROOT/CVSROOT/cvs-log
$CVSROOT/CVSROOT/updatelog \
[EMAIL PROTECTED]

and keep those aliases up to date with the addresses of everyone working
on each project?

Derek

--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:[EMAIL PROTECTED]     OpenAvenue ( http://OpenAvenue.com )
--
I will not torment the emotionally frail.
I will not torment the emotionally frail.
I will not torment the emotionally frail...

          - Bart Simpson on chalkboard, _The Simpsons_

[EMAIL PROTECTED] wrote:

> I am sure it's been covered before, but for some reason i can't find
> any relevant info in archive.  So here it goes.  I'd like to have
> mail sent to every person in a build groups, when somebody checks in
> their changes.  I am using loginfo file, which looks like this:
>
> ALL     bash $CVSROOT/CVSROOT/cvs-log $CVSROOT/CVSROOT/updatelog
>
> where cvs-log is the following script:
>
> cvs log -d date;
>
> grep '^"Enter Defect Number:.*' | sed '/<[^>]*>/!d;s/*
> (.*)//;s/>".*//;s/[ ]*,[ ]*/\
> /g;s/.*[<] *//' | sort -nu
> cat) > $1
> Blat $1 -s "CVS notification" -t [EMAIL PROTECTED]
>
> It works, however i need to email this file to a group of users.
> Anybody knows how to do it?  I'll probably have to create aliases
> file, smth looking like:
> user1:value1
> user2:value2
> etc...
>
> where all the values are different email addresses...But how do i
> pass this file to blat?
>
> _______________________________________________
> Info-cvs mailing list
> [EMAIL PROTECTED]
> http://mail.gnu.org/mailman/listinfo/info-cvs

_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to