Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # This file is managed by Puppet
- export TMPDIR="/tmp/svntmp"
- if [ ! -e "TMPDIR" ]; then
- mkdir -p $TMPDIR
- fi
- export PATH="/usr/bin:/bin:/usr/local/bin"
- export REPOS="$1"
- export TMPFILE=$(mktemp -p $TMPDIR)
- export REV="$2"
- AUTHOR="$(grep `svnlook author -r "$REV" "$REPOS"` /etc/passwd | cut -d: -f5)"
- MAILADDR="mygroup@mycompany.com"
- svnnotify -r "$REV" \
- -C \
- -d \
- -H Alternative --alt HTML::ColorDiff \
- -p "$REPOS" \
- -P "Puppet SVN Commit " \
- -t "$MAILADDR" \
- --from "$AUTHOR <$(echo $AUTHOR | tr ' ' '_')@mycompany.com>" \
- --reply-to $MAILADDR
- exit $?
Add Comment
Please, Sign In to add comment