Hey if your using Trac I am posting an improved script for integration into dreamhost. Thanks Stefan Koopmanschap for the original script and this is just a small incremental improvement. Link to the original is on Stefan's blog post linked below.
USERNAME=username
PACKAGE=trac_packages
PROJECT=projectname
LOG=`/usr/bin/svnlook log -r $REV $REPOS`
AUTHOR=`/usr/bin/svnlook author -r $REV $REPOS`
TRAC_ENV="/home/$USERNAME/trac_sites/$PROJECT/"
HOME="/home/$USERNAME"
export PYTHONPATH="$HOME/$PACKAGE/lib/python2.3/site-packages"
export LD_LIBRARY_PATH="$HOME/$PACKAGE/lib"
export PATH="$HOME/$PACKAGE/bin:$PATH"
/usr/bin/python /home/$USERNAME/trac_sites/trac_hooks/trac-post-commit-hook \
-p "$TRAC_ENV" \
-r "$REV" \
-u "$AUTHOR" \
-m "$LOG"
Trac Install Guides
Sunday, May 25, 2008
Trac integration post commit hook
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment