]> granicus.if.org Git - php/commitdiff
Expose phpize output
authorTomas V.V.Cox <cox@php.net>
Mon, 16 Jun 2003 17:10:09 +0000 (17:10 +0000)
committerTomas V.V.Cox <cox@php.net>
Mon, 16 Jun 2003 17:10:09 +0000 (17:10 +0000)
Increase verbosity for building process by default
(no need for -v)

pear/PEAR/Builder.php

index 20bb40c47108478f9a5c6754f8baf9c70e59d21e..13c3f36f606ad9384d00605dff71c79db2bd37cd 100644 (file)
@@ -310,7 +310,7 @@ class PEAR_Builder extends PEAR_Common
         if ($what != 'cmdoutput') {
             return;
         }
-        $this->log(3, rtrim($data));
+        $this->log(1, rtrim($data));
         if (preg_match('/You should update your .aclocal.m4/', $data)) {
             return;
         }
@@ -320,8 +320,8 @@ class PEAR_Builder extends PEAR_Common
             $apino = (int)$matches[2];
             if (isset($this->$member)) {
                 $this->$member = $apino;
-                $msg = sprintf("%-22s : %d", $matches[1], $apino);
-                $this->log(1, $msg);
+                //$msg = sprintf("%-22s : %d", $matches[1], $apino);
+                //$this->log(1, $msg);
             }
         }
     }
@@ -352,6 +352,11 @@ class PEAR_Builder extends PEAR_Common
         if (!$pp) {
             return $this->raiseError("failed to run `$command'");
         }
+        if ($callback && $callback[0]->debug == 1) {
+            $olddbg = $callback[0]->debug;
+            $callback[0]->debug = 2;
+        }
+
         while ($line = fgets($pp, 1024)) {
             if ($callback) {
                 call_user_func($callback, 'cmdoutput', $line);
@@ -359,6 +364,9 @@ class PEAR_Builder extends PEAR_Common
                 $this->log(2, rtrim($line));
             }
         }
+        if ($callback && isset($olddbg)) {
+            $callback[0]->debug = $olddbg;
+        }
         $exitcode = @pclose($pp);
         return ($exitcode == 0);
     }