#!/bin/sh
export = LC_ALL=pt_BR.UTF-8
REPOS="$1"
REV="$2"
AUTHOR=`/usr/bin/svnlook author -r "$REV" "$REPOS"`
LOG="$REPOS/hooks/log.txt"

/var/www/vhosts/brmais2.com/httpdocs/svn/mailer.pl  "$REPOS" "$REV" "$AUTHOR" --diff n --from svn@brmais2.com  -s "[UNICLIN PC] Rev: [" danielbrahm@gmail.com
#/var/www/vhosts/brmais2.com/httpdocs/svn/mailer.pl  "$REPOS" "$REV" "$AUTHOR"  --diff n --from svn@brmais2.com  -s "[CPAP] Rev: [" cristhiandesign@gmail.com
#/var/www/vhosts/brmais2.com/httpdocs/svn/mailer.pl  "$REPOS" "$REV" "$AUTHOR"  --diff n --from svn@brmais2.com  -s "[CPAP] REV :[" rsanthos@gmail.com                 

>> $LOG 2>&1 || exit 1