cvs: php4 /pear/PEAR Builder.php

From: Date: Thu, 06 Jun 2002 10:35:16 +0000
Subject: cvs: php4 /pear/PEAR Builder.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4441@lists.php.net to get a copy of this message
ssb Thu Jun 6 06:35:16 2002 EDT Modified files: /php4/pear/PEAR Builder.php Log: * when building, look for "package-version" subdirectory, needed for building stuff straight from tarballs Index: php4/pear/PEAR/Builder.php diff -u php4/pear/PEAR/Builder.php:1.2 php4/pear/PEAR/Builder.php:1.3 --- php4/pear/PEAR/Builder.php:1.2 Sun Jun 2 09:07:18 2002 +++ php4/pear/PEAR/Builder.php Thu Jun 6 06:35:16 2002 @@ -16,7 +16,7 @@ // | Authors: Stig Sæther Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: Builder.php,v 1.2 2002/06/02 13:07:18 ssb Exp $ +// $Id: Builder.php,v 1.3 2002/06/06 10:35:16 ssb Exp $ require_once 'PEAR/Common.php'; @@ -92,7 +92,13 @@ if (!@chdir($dir)) { return $this->raiseError("could not chdir to $dir"); } + $vdir = "$info[package]-$info[version]"; + if (is_dir($vdir)) { + chdir($vdir); + } $dir = getcwd(); + $this->log(2, "building in $dir"); + $this->_runCommand("find $dir -print", $callback); $this->current_callback = $callback; $err = $this->_runCommand("phpize", array(&$this, 'phpizeCallback')); if (PEAR::isError($err)) {

« previous php.pear.cvs (#4441) next »