svn: /pear2/Pyrus/trunk/ extrasetup.php

From: Date: Sun, 23 May 2010 19:37:44 +0000
Subject: svn: /pear2/Pyrus/trunk/ extrasetup.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9426@lists.php.net to get a copy of this message
saltybeagle Sun, 23 May 2010 19:37:44 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=299669 Log: Minor simplification Changed paths: U pear2/Pyrus/trunk/extrasetup.php Modified: pear2/Pyrus/trunk/extrasetup.php =================================================================== --- pear2/Pyrus/trunk/extrasetup.php 2010-05-23 19:37:08 UTC (rev 299668) +++ pear2/Pyrus/trunk/extrasetup.php 2010-05-23 19:37:44 UTC (rev 299669) @@ -2,18 +2,14 @@ /** * This file generates the pyrus.phar file and PEAR2 package for Pyrus. */ +$lib_path = __DIR__ . '/..'; if (basename(__DIR__) == 'trunk') { - $extrafiles = array( - new \PEAR2\Pyrus\Package(__DIR__ . '/../../HTTP_Request/trunk/package.xml'), - new \PEAR2\Pyrus\Package(__DIR__ . '/../../sandbox/Console_CommandLine/trunk/package.xml'), - new \PEAR2\Pyrus\Package(__DIR__ . '/../../MultiErrors/trunk/package.xml'), - new \PEAR2\Pyrus\Package(__DIR__ . '/../../Exception/trunk/package.xml'), - ); -} else { - $extrafiles = array( - new \PEAR2\Pyrus\Package(__DIR__ . '/../HTTP_Request/package.xml'), - new \PEAR2\Pyrus\Package(__DIR__ . '/../sandbox/Console_CommandLine/package.xml'), - new \PEAR2\Pyrus\Package(__DIR__ . '/../MultiErrors/package.xml'), - new \PEAR2\Pyrus\Package(__DIR__ . '/../Exception/package.xml'), - ); + $lib_path .= '/..'; } + +$extrafiles = array( + new \PEAR2\Pyrus\Package($lib_path . '/HTTP_Request/trunk/package.xml'), + new \PEAR2\Pyrus\Package($lib_path . '/sandbox/Console_CommandLine/trunk/package.xml'), + new \PEAR2\Pyrus\Package($lib_path . '/MultiErrors/trunk/package.xml'), + new \PEAR2\Pyrus\Package($lib_path . '/Exception/trunk/package.xml'), +);

« previous php.pear.core (#9426) next »