Last active
December 12, 2015 10:39
-
-
Save ringanta/4760472 to your computer and use it in GitHub Desktop.
Send mail after commit in svn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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