#!/bin/sh # POST-COMMIT HOOK # # The post-commit hook is invoked after a commit. Subversion runs # this hook by invoking a program (script, executable, binary, # etc.) named 'post-commit' (for which # this file is a template) with the following ordered arguments: # # [1] REPOS-PATH (the path to this repository) # [2] REV (the number of the revision just committed) # export LD_LIBRARY_PATH=/usr/local/lib export PYTHONPATH=/usr/local/lib/svn-python SVNLOOK=/usr/local/bin/svnlook REPOS="$1" REV="$2" LOG=`$SVNLOOK log -r "$REV" "$REPOS"` AUTHOR=`$SVNLOOK author -r "$REV" "$REPOS"` DIRS="`$SVNLOOK dirs-changed -r "$REV" "$REPOS"`" $REPOS/hooks/trac-post-commit-hook.py -p /var/www/trac -r "$REV" -u "$AUTHOR" -m "$LOG" -d "$DIRS"