[sword-devel] Important questions
Dan B
sword-devel@crosswire.org
Fri, 16 Mar 2001 21:58:53 -0800
At 10:52 PM 3/16/2001 -0700, you wrote:
>I'll look into it. It's on a box we can do anything we want to, so if
>you know how to add the correct script to the CVS setup, let me know...
>
>Hmmm... This might mean that we'll have to start using real commit log
>messages all the time... ;)
Since you have your own CVS server, we can be a little more
flexible. Here's what I would recommend.
Add the following to CVSROOT/loginfo:
ALL /usr/bin/cvs-log $CVSROOT/CVSROOT/commitlog $USER "%{sVv}"
Create a /usr/bin/cvs-log that is executable by the cvs user. (chmod 755
would do it):
#!/bin/sh
(echo "----------------------------------------------";
echo -n $2" ";
date;
echo;
cat) | tee $1 | /usr/bin/Mail -s "[sword-cvs] $3" sword-cvs@crosswire.org
At that point, your commit logs will be archived in the CVSROOT/commitlog
file, and they would be e-mailed to the sword-cvs@crosswire.org
address. Here is what a sample e-mail looks like:
Subject: [sword-cvs] 'directory/subdirectory filename.c,1.7,1.8'
----------------------------------------------
commiter_username Fri Mar 16 21:14:09 PST 2001
Update of directory/subdirectory
In directory cvs.crosswire.org:/tmp/cvs-serv7721
Modified Files:
filename.c
Log Message:
test
My e-mail address is danb@cyclonecomputers.com (or this address) if you
would like to contact me privately for more setup help. But I'll post this
e-mail here incase someone else might find this useful.
Dan Browning, Cyclone Computer Systems, danb@cyclonecomputers.com