There's an example "send email" script in the distribution under tool/
hook-scripts. I just used it "as is" with the following post-commit
hook script:
#!/bin/sh
REPOS="$1"
REV="$2"
logger -i -p local0.info -t POST-COMMIT "Repos= $REPOS Rev= $REV"
/path/to/commit-email.pl "$REPOS" "$REV" commit-watchers
logger -i -p local0.info -t POST-COMMIT "returned $?"
If you look at the script, near the top there is a line which defines
the location of sendmail, you'll need to change it. "commit-
watchers" is an e-mail alias, you'd use "foo-dev" if your alias is on
the same machine.
On 4 Sep 2006, at 02:54, fabio wrote:
> Hello,
>
> Can anyone provide to the lists a very basioc configuration to set
> up post-commit on svn/Solaris 10?
>
> Let's say I have this basic sendmail aliases configuration:
>
> foo-dev: :include: /opt/csw/etc/mail/foo.developers.list
>
> and I have the repository: /export/svnroot/foo
>
> -bash-3.00$ which svn
> /opt/csw/bin/svn
>
>
> How can I enable post commit email to be sent to this email: foo-
> dev@foo.org each time a developer modify the repository?
>
> Thanks,
>
> --
> Fabio Andres Miranda
> Ingenieria en sistemas informaticos
> http://ns.isi.ulatina.ac.cr/~fabmirha
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Sep 4 13:31:42 2006