summaryrefslogtreecommitdiff
path: root/d/sys/lampion/local/sbin/post-commit
blob: 5d913f8907bd4fca7abc5fd6bae439e096e1608d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/zsh

REPOS=$1
REV=$2
AUTHOR=$(svnlook author -r $REV $REPOS)
L=10	# Max dirs-changed

# Exit if only a xxx change.
#svnlook dirs-changed -r $REV $REPOS | grep -qv '^xxx/.' || exit

# Send message
(
export LANG=fr_FR@euro
echo "SVN commit r$REV by $AUTHOR in $REPOS:"
svnlook log -r $REV $REPOS | sed -e '/^$/d' -e 's/^/| /'
svnlook dirs-changed -r $REV $REPOS | \
	sed -e $L's/.*/> .../' -e $L'q' -e 's/^/> /'
) | /usr/local/sbin/apbteambot-say