You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
f6a4c58134
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@93028 d073be05-634f-4543-b044-5fe20cf6d1d6
22 lines
954 B
PHP
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;
|