Skip to content

Instantly share code, notes, and snippets.

@jongha
Created May 15, 2015 07:45
Show Gist options
  • Save jongha/97eaa36855acb75e5969 to your computer and use it in GitHub Desktop.
Save jongha/97eaa36855acb75e5969 to your computer and use it in GitHub Desktop.
#!/bin/sh
REPOS="$1"
REV="$2"
#mailer.py commit "$REPOS" "$REV" /path/to/mailer.conf
MESSAGE=$(svnlook propget --revprop -r $REV $REPOS svn:log)
cat <<EOF | /root/monitor/sendmail.py -s "[COMMIT] $REPOS:$REV" -r user@domain
REPOS: $REPOS
REV: $REV
MESSAGE:
$MESSAGE
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment