I simply used a perl script:
write a perlscript (e.s. script.pl)
then add a line in the loginfo file(in cvsroot);
ALL $CVSROOT/CVSROOT/script.pl %{sVv} $USER $CVSROOT (this is as much you
can obtain as information from loginfo input)
then
You will manage the info from loginfo including a
$loginfo_input="$ARGV[0]"
line in the perlscript,
then use a Perl module to send mail to developers:
use Mail::Sendmail (a module that you can find it on-line)
and add something like that:
#===================================================
%mail = ( To => 'recipier',
From => 'sender',
Subject => "Message managed in your perlscript ",
Message => "Mail content , about users, modules, files involved
in changes, version numbers.... "
);
sendmail(%mail) or die $Mail::Sendmail::error;
#=======================================================
in script.pl
ciao
-----Messaggio originale-----
Da: Ziólkowski Marcin [mailto:[EMAIL PROTECTED]]
Inviato: venerdi 21 febbraio 2003 12.17
A: '[EMAIL PROTECTED]'
Oggetto: How send log message to specific program from loginfo, commitinfo
or else admin files.
Hi,
I know that is possible to run extarnal program from loginfo file durring
commit operation and pass parameters such as %v %V %s.
In our development team we want to find out solution to pass information
from log
message as parametr to external program wich run from cvsroot/loginfo file.
We want to use special program or plug-in to insert information from log
message to database wich storege information about bugs and changes.
Any resolutions ?
Regards,
Martin.
_______________________________________________
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