summaryrefslogtreecommitdiff
path: root/d/sys/lampion/local/sbin/post-commit
diff options
context:
space:
mode:
authorschodet2005-07-29 18:18:15 +0000
committerschodet2005-07-29 18:18:15 +0000
commit1ae2a29d75aca1dc612aebe5238ec4df109c1418 (patch)
treedb4cae5ffa5090df012aa3a940c1b9e65cabe077 /d/sys/lampion/local/sbin/post-commit
parent2d7050e4f2e9cd5950cf22beee8ae9c34dd18094 (diff)
Ajout de sbin et du APBTeamBot.
Diffstat (limited to 'd/sys/lampion/local/sbin/post-commit')
-rwxr-xr-xd/sys/lampion/local/sbin/post-commit11
1 files changed, 11 insertions, 0 deletions
diff --git a/d/sys/lampion/local/sbin/post-commit b/d/sys/lampion/local/sbin/post-commit
new file mode 100755
index 0000000..18cc328
--- /dev/null
+++ b/d/sys/lampion/local/sbin/post-commit
@@ -0,0 +1,11 @@
+#!/usr/bin/zsh
+
+REPOS=$1
+REV=$2
+AUTHOR=$(svnlook author -r $REV $REPOS)
+
+(
+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 's/^/> /'
+) | /usr/local/sbin/apbteambot-say