Skip to content

Instantly share code, notes, and snippets.

@ringanta
Last active December 12, 2015 10:39
Show Gist options
  • Save ringanta/4760472 to your computer and use it in GitHub Desktop.
Save ringanta/4760472 to your computer and use it in GitHub Desktop.
Send mail after commit in svn
#!/bin/sh
REPOS="$1"
REV="$2"
MAILADDR="fedora@localhost"
export PATH=/usr/bin/:/bin/:$PATH
COMMITMSG=`svnlook info $REPOS $REV | sed -n "4,\$ p"`
COMMITER=`svnlook info $REPOS $REV | sed -n '1 p'`
printf '%s\nBy: %s\n' "$COMMITMSG" "$COMMITER" | mail -s "SVN Commit: $REV" $MAILADDR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment