Brian,
You
only need loginfo.pl, if you want a mailing list to see a diff of the changes
for each commit. If not you can simply use 'mail'.
You'll need to do the following, if
you choose to use loginfo.pl.
Edit
any of the following, if different on your system:
my
$last_file = "/var/cvs/lastdir";
my $summary = "/var/cvs/summary";
my $smtpserver = "127.0.0.1";
my $smtpport = 25;
my $cvs = "/usr/bin/cvs";
my $cvsroot = $ENV{CVSROOT}."/";
# remove double trailing slash
$cvsroot =~ s/\/\/$/\//;
my $cvsusers = "/home/cvs/cvsroot/CVSROOT/cvsusers";
my $summary = "/var/cvs/summary";
my $smtpserver = "127.0.0.1";
my $smtpport = 25;
my $cvs = "/usr/bin/cvs";
my $cvsroot = $ENV{CVSROOT}."/";
# remove double trailing slash
$cvsroot =~ s/\/\/$/\//;
my $cvsusers = "/home/cvs/cvsroot/CVSROOT/cvsusers";
Create
a /var/cvs directory that's world writable.
#
mkdir /var/cvs
#
chmod 777 /var/cvs
#
chown cvs.cvs /var/cvs
I'm
not *sure* about the world writable part.
Mark
the script as executable (if it isn't already):
#
chmod +x /home/cvs/cvs/CVSROOT/loginfo.pl
Good
luck!
-Ross
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Brian Sequeira
Sent: Thursday, April 05, 2001 11:23 AM
To: [EMAIL PROTECTED]
Subject: loginfo.pl for Email Notification
Hello,
Below is an error
I get when I try to commit any file after I had edited my loginfo file to
contain the following line: ALL $CVSROOT/CVSROOT/loginfo.pl [EMAIL PROTECTED] $USER
%{sVv}
brians@viola:/usr/home/brians/51Release/Oas/CVSROOT$
cvs commit -m "test"
cvs commit: Examining .
Checking in loginfo.pl;
/home/cvs/cvs/CVSROOT/loginfo.pl,v <-- loginfo.pl
new revision: 1.2; previous revision: 1.1
done
sh: /home/cvs/cvs/CVSROOT/loginfo.pl: No such file or directory
cvs server: Rebuilding administrative file database
cvs commit: Examining .
Checking in loginfo.pl;
/home/cvs/cvs/CVSROOT/loginfo.pl,v <-- loginfo.pl
new revision: 1.2; previous revision: 1.1
done
sh: /home/cvs/cvs/CVSROOT/loginfo.pl: No such file or directory
cvs server: Rebuilding administrative file database
A loginfo.pl,v
file exists in the CVSROOT directory, but not a loginfo.pl. I added a
loginfo.pl to the repository that was passed on thru this mailing list. I had
to edit the following lines in the file:
my
$last_file =
"/var/cvs/lastdir";
-------- (What is this variable used for?)
my $summary = "/var/cvs/summary"; -------- (What is this variable used for?)
my $smtpserver = "127.0.0.1";
my $smtpport = 25;
my $cvs = "/usr/bin/cvs";
my $cvsroot = $ENV{CVSROOT}."/";
# remove double trailing slash
$cvsroot =~ s/\/\/$/\//; ------ (What does this mean?)
my $cvsusers = "/home/cvs/cvsroot/CVSROOT/cvsusers"; -------(no cvsusers file existing)
my $summary = "/var/cvs/summary"; -------- (What is this variable used for?)
my $smtpserver = "127.0.0.1";
my $smtpport = 25;
my $cvs = "/usr/bin/cvs";
my $cvsroot = $ENV{CVSROOT}."/";
# remove double trailing slash
$cvsroot =~ s/\/\/$/\//; ------ (What does this mean?)
my $cvsusers = "/home/cvs/cvsroot/CVSROOT/cvsusers"; -------(no cvsusers file existing)
Could you point to
a site or maual that could better help me understand email
notifications via CVS? Thanks
Brian
Sequeira
Build & Configuration
Real Media
580 Virginia Ave - Suite 200
Fort
Washington PA 19034
Tel:
215.654.8376 x556
Fax: 215.591.0704
[EMAIL PROTECTED]
www.realmedia.com
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- Real Media is a PubliGroupe company - the largest and oldest media services
- organization in the world. Real Media provides marketing solutions to the
- digital advertising industry through state of the art technology, maximizing
- brand value by protecting audience information. Real Media's customers
- include Bloomberg, Weather.com, New York Times Digital, U.S. News & World Report,
- GOLFOnline, Investors.com, Forbes, USA Today and mp3.com. For more
- information please visit www.realmedia.com.
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- Real Media is a PubliGroupe company - the largest and oldest media services
