[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Needs CVS email notification help !
From: |
DeAnna_nguyen |
Subject: |
Re: Needs CVS email notification help ! |
Date: |
Tue, 04 Apr 2006 13:52:34 +0000 |
Jim,
That what I did before I send my email to the list.
I don't know what i did wrong. I never get a email trigger
send back to me. I tail -f the maillog on cvs server and looking for email
notify send out, but no luck.
Also my $CVSROOT is: /cvs/cvsroot/Repository
loginfo file:
projects/drivers /usr/local/bin/cvs-log-deanna /usr/local/logs/temp $USER
**********
cvs-log-deanna file:
#!/bin/sh
tempfile=/usr/local/logs/temp
(echo "------------------------------------------------------";
echo -n $2" ";
date;
echo;
cat) >> $tempfile
# Check for scripts changes
count=`grep -c "drivers" $tempfile 2>/dev/null`
if [ ! $count = 0 ]
then
cat $tempfile >> /usr/local/logs/deanna/log
mail -s "scripts database UPDATE: $2 " address@hidden< $tempfile
fi
However, this script is working if I create a new module directory say:
docs under /cvs/cvsroot/Repostory/docs/drivers
So I hope some one point out what I miss. You can see that I am not a
programmer.
Thanks, for your help.
De-
-------------- Original message ----------------------
From: Jim Hyslop <address@hidden>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> address@hidden wrote:
> > So my question is: how can I have a trigger email notify for a
> > specific directory under out main modules when our users commit a
> > checkin.
> >
> > IE: my modules directory like:
> >
> > /cvs/cvsroot/Repository/projects/
> >
> > under /projects we have:
> >
> > projects/sofware, hwware, thirdparty, drivers ...and so on.
> >
> > Nowe I want a trigger to send email if any one that are commit
> > file(s) under drivers directory.
>
> You should be able to put the drivers directory in the loginfo script,
> like this (assuming $CVSROOT is /cvs/cvsroot):
>
> Repository/projects/drivers your_trigger_script
>
> - --
> Jim Hyslop
> Dreampossible: Better software. Simply. http://www.dreampossible.ca
> Consulting * Mentoring * Training in
> C/C++ * OOD * SW Development & Practices * Version Management
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (MingW32)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFEMl0rLdDyDwyJw+MRAnyJAJ41SU9WeLfo2cNSrccMX10WOjKBqgCbB4iZ
> Vd6VtPfI6xKqra852jME9Xw=
> =hrE7
> -----END PGP SIGNATURE-----
>