cvs: phd / build.php package.xml

From: Date: Sun, 30 Dec 2007 15:20:09 +0000
Subject: cvs: phd / build.php package.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-942@lists.php.net to get a copy of this message
bjori Sun Dec 30 15:20:09 2007 UTC Modified files: /phd build.php package.xml Log: Remove support for phnotify # No need for it anymore http://cvs.php.net/viewvc.cgi/phd/build.php?r1=1.39&r2=1.40&diff_format=u Index: phd/build.php diff -u phd/build.php:1.39 phd/build.php:1.40 --- phd/build.php:1.39 Sun Dec 30 13:49:09 2007 +++ phd/build.php Sun Dec 30 15:20:09 2007 @@ -1,29 +1,6 @@ #!@php_bin@ <?php -/* $Id: build.php,v 1.39 2007/12/30 13:49:09 bjori Exp $ */ - -function err($no, $str, $file, $line) { - global $notify; - if (strpos($str, "No mapper") !== false) { -// $notify->update("Another missing function", strstr($str, "'"))->show(); - return false; - } - - $err = new PHNotify("Something wrong!", "$str\n$file:$line\n", "dialog-error"); - $err - ->urgency(PHNotify::URGENCY_CRITICAL) - ->timeout(PHNotify::EXPIRES_NEVER) - ->hint("x", 1680/2)->hint("y", 1050/2) - ->show(); - return false; -} - -if ($err = extension_loaded("phnotify")) { - $notify = new PHNotify("Starting build"); - $notify->urgency(PHNotify::URGENCY_LOW)->hint("x", 1680)->hint("y", 10)->show(); - $start = microtime(true); - set_error_handler("err"); -} +/* $Id: build.php,v 1.40 2007/12/30 15:20:09 bjori Exp $ */ $ROOT = "@php_dir@/phd"; if ($ROOT == "@php_dir"."@/phd") { @@ -51,13 +28,6 @@ if ($OPTIONS["verbose"] & VERBOSE_INDEXING) { v("Indexing done\n"); } - - if ($err) { - $mktoc = microtime(true); - $notify - ->update("mktoc finished", sprintf("mktoc ran for <b>%d</b> sec", $mktoc-$start)) - ->show(); - } } else { /* FIXME: Load from sqlite db? */ } @@ -278,14 +248,6 @@ v("Finished rendering\n"); } - if ($err) { - $end = microtime(true); - $notify - ->update( - "PhD build finished", - sprintf("mktoc build: <b>%d</b> sec\nPhD build : <b>%d</b> sec\n--\nTotal time: <b>%d</b> seconds\n", $mktoc-$start, $end-$mktoc, $end-$start)) - ->show(); - } } // foreach($OPTIONS["output_thtemes"]) /* http://cvs.php.net/viewvc.cgi/phd/package.xml?r1=1.20&r2=1.21&diff_format=u Index: phd/package.xml diff -u phd/package.xml:1.20 phd/package.xml:1.21 --- phd/package.xml:1.20 Sun Dec 30 15:18:49 2007 +++ phd/package.xml Sun Dec 30 15:20:09 2007 @@ -24,6 +24,7 @@ </stability> <license uri="http://www.opensource.org/licenses/bsd-license.php">BSD Style</license> <notes> + - Removed support for phnotify </notes> <contents> <dir baseinstalldir="phd" name="/">

« previous php.doc.cvs (#942) next »