Files
macports-ports/php/php-svn/files/patch-hook_emailcommit.php
Ryan Schmidt f6a4c58134 php-svn: unified port
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@93028 d073be05-634f-4543-b044-5fe20cf6d1d6
2012-05-14 06:54:37 +00:00

22 lines
954 B
PHP

--- examples/hook_emailcommit.php.orig 2009-09-23 22:08:17.000000000 -0500
+++ examples/hook_emailcommit.php 2009-11-28 03:27:18.000000000 -0600
@@ -36,8 +36,7 @@
$this->rev = (int) $this->rev;
$last = $this->rev -1 ;
// techncially where the diff is!?
- require_once 'System.php';
- $svn = System::which('svn','/usr/bin/svn');
+ $svn = '@PREFIX@/bin/svn';
$cmd = "$svn diff -r{$last}:{$this->rev} $this->repos";
$this->log = svn_log($this->repos, $this->rev, $this->rev-1, 0, SVN_DISCOVER_CHANGED_PATHS);
@@ -124,7 +123,7 @@
$this->writeFile($tmp ,
svn_cat($this->repos . $action['path'],$this->rev));
- $data = $data = `/usr/bin/php -l $tmp`;
+ $data = $data = `@PREFIX@/bin/php -l $tmp`;
unlink($tmp);
if (preg_match('/^No syntax errors/',$data)) {
continue;