diff --git a/scripts/git-post-update b/scripts/git-post-update index 08c7866..b407b1d 100755 --- a/scripts/git-post-update +++ b/scripts/git-post-update @@ -17,8 +17,11 @@ # git$ ln -s /home/www/indefero/scripts/git-post-update post-update # -SCRIPTDIR=$(dirname $(readlink -f $0)) -FULL_GIT_DIR=$(readlink -f $GIT_DIR) +dir=$(dirname "$0") +res=$(cd "$dir" && /bin/pwd || "$dir") +SCRIPTDIR="$res/$(readlink $0)" +FULL_GIT_DIR=$(cd "$GIT_DIR" && /bin/pwd || "$GIT_DIR") + PHP_POST_UPDATE=$SCRIPTDIR/gitpostupdate.php echo php $PHP_POST_UPDATE $FULL_GIT_DIR | at now > /dev/null 2>&1 diff --git a/scripts/svn-post-commit b/scripts/svn-post-commit index 54c85a3..ae2ce01 100755 --- a/scripts/svn-post-commit +++ b/scripts/svn-post-commit @@ -18,7 +18,9 @@ # www$ ln -s /home/www/indefero/scripts/svn-post-commit post-commit # -SCRIPTDIR=$(dirname $(readlink -f $0)) +dir=$(dirname "$0") +res=$(cd "$dir" && /bin/pwd || "$dir") +SCRIPTDIR="$res/$(readlink $0)" PHP_POST_COMMIT=$SCRIPTDIR/svnpostcommit.php echo php $PHP_POST_COMMIT "$1" "$2" | at now > /dev/null 2>&1 diff --git a/scripts/svn-post-revprop-change b/scripts/svn-post-revprop-change index 5949556..0fc63b8 100755 --- a/scripts/svn-post-revprop-change +++ b/scripts/svn-post-revprop-change @@ -18,7 +18,9 @@ # www$ ln -s /home/www/indefero/scripts/svn-post-revprop-change post-revprop-change # -SCRIPTDIR=$(dirname $(readlink -f $0)) +dir=$(dirname "$0") +res=$(cd "$dir" && /bin/pwd || "$dir") +SCRIPTDIR="$res/$(readlink $0)" PHP_POST_REVPROP=$SCRIPTDIR/svnpostrevpropchange.php echo php $PHP_POST_REVPROP "$1" "$2" "$3" "$4" "$5" | at now > /dev/null 2>&1