#!/bin/sh # # This hook does only one thing: # # 1. It calls the svnpostrevpropchange.php script with the current repository # and revision as argument. The svnpostrevpropchange.php script will then # trigger the 'svnpostrevpropchange.php::run' event with the repository # path, revision, username, property name and action as arguments together # with merged $_ENV and $_SERVER array. # # This hook is normally installed automatically at the creation of your # repository if you have everything configured correctly. If you want # to enable it later, you need to symlink it as "post-revprop-change" in your # $REPOSITORY/hooks folder. It needs to be executable. # # www$ chmod +x /home/www/indefero/scripts/svn-post-revprop-change # www$ cd /home/svn/repositories/project/hooks # www$ ln -s /home/www/indefero/scripts/svn-post-revprop-change post-revprop-change # SCRIPTDIR=$(dirname $(readlink $0)) PHP_POST_REVPROP=$SCRIPTDIR/svnpostrevpropchange.php echo php $PHP_POST_REVPROP "$1" "$2" "$3" "$4" "$5" | at now > /dev/null 2>&1 REPOS="$1" REV="$2" USER="$3" PROPNAME="$4" ACTION="$5"