[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using blat to mail a group at each commit
From: |
Derek R. Price |
Subject: |
Re: using blat to mail a group at each commit |
Date: |
Thu, 21 Sep 2000 16:59:37 -0400 |
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 \
address@hidden
project2 bash $CVSROOT/CVSROOT/cvs-log
$CVSROOT/CVSROOT/updatelog \
address@hidden
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:address@hidden 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_
address@hidden 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 address@hidden
>
> 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
> address@hidden
> http://mail.gnu.org/mailman/listinfo/info-cvs