Hi Jane,
"Jane W. Simpson" schrieb:
> I've been trying to get CVS to email a list of users when a file gets
> committed. So far I've added the line:
> ALL mail -s %s <list of email addresses>
> to the loginfo file.
>
> Is there any way to read the email addresses in from another file?
>
> >From looking at the "Per Cederqvist et al" (section 10.6.2 - page 64),
> it talks about a "users" file. There is no information on how this is
> used.
>
> I'm using CVS 1.10.
You cite exactly the right part of the manual. Unfortunately it doesn't
show an example there, although in principle it tells you what to do:
1) Put a file called "users" into the CVSROOT administrative directory of
your repository. I suggest you should do this by checking out the CVSROOT
module and adding users as a text file. So users itself is put under CVS
control.
2) Put a line "user:value" for each user you want to give an email address
inside this file, where user is the name CVS passes to the %s argument
above up to now and value is the name it should pass in future. Example:
CVS user is foo, email address is [EMAIL PROTECTED] Then you put
foo:[EMAIL PROTECTED]
as a single line into the users file.
3) Add a line for the "users" file into the "checkoutlist" file (got
checked out in the CVSROOT module in step 1) in order to automatically keep
a checked out copy of users,v (i.e. users itself) in the repository
(checkoutlist is inline documented, so no problem).
4) Commit checkoutlist and users (I didn't test if it matters which one is
committed first, but I hope not).
Now everything should work as you wish. Please note that if you use the
checkoutlist mechanism you never should edit the users file in the
repository directly, but always using cvs co / cvs ci, as it would be
automatically overwritten.
Best regards
Martin