svn: /pear2/Pyrus/trunk/ build.xml makepackage.php package.xml package_compatible.xml pyrus.phar
| From: | Brett Bieber | Date: | Mon, 30 Nov 2009 16:45:24 +0000 |
| Subject: | svn: /pear2/Pyrus/trunk/ build.xml makepackage.php package.xml package_compatible.xml pyrus.phar | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9054@lists.php.net to get a copy of this message | ||
saltybeagle Mon, 30 Nov 2009 16:45:24 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=291509
Log:
Update pyrus.phar with latest fixes. Update ant build script: The phar and dist targets now use
pyrus to build the pyrus.phar file, use pyrus to run the tests using -m. Remove makepackage.php as
it should not be used anymore. Use pyrus make && pyrus package --phar -o newpyrus.phar
&& mv newpyrus.phar pyrus.phar OR ant phar
Changed paths:
U pear2/Pyrus/trunk/build.xml
D pear2/Pyrus/trunk/makepackage.php
U pear2/Pyrus/trunk/package.xml
U pear2/Pyrus/trunk/package_compatible.xml
U pear2/Pyrus/trunk/pyrus.phar
Modified: pear2/Pyrus/trunk/build.xml
===================================================================
--- pear2/Pyrus/trunk/build.xml 2009-11-30 16:34:15 UTC (rev 291508)
+++ pear2/Pyrus/trunk/build.xml 2009-11-30 16:45:24 UTC (rev 291509)
@@ -20,8 +20,14 @@
<target name="phar">
<exec executable="php" dir="${basedir}" failonerror="on">
- <arg line="makepackage.php" />
- </exec>
+ <arg line="pyrus.phar make" />
+ </exec>
+ <exec executable="php" dir="${basedir}" failonerror="on">
+ <arg line="-dphar.readonly=0 pyrus.phar package --phar -o newpyrus.phar" />
+ </exec>
+ <exec executable="mv" dir="${basedir}" failonerror="on">
+ <arg line="newpyrus.phar pyrus.phar" />
+ </exec>
</target>
<target name="checkout">
@@ -31,8 +37,8 @@
</target>
<target name="phpt">
- <exec executable="pear" dir="${basedir}" failonerror="on">
- <arg line="run-tests -r ${basedir}/tests" />
+ <exec executable="php" dir="${basedir}" failonerror="on">
+ <arg line="pyrus.phar run-phpt -m" />
</exec>
</target>
Deleted: pear2/Pyrus/trunk/makepackage.php
===================================================================
--- pear2/Pyrus/trunk/makepackage.php 2009-11-30 16:34:15 UTC (rev 291508)
+++ pear2/Pyrus/trunk/makepackage.php 2009-11-30 16:45:24 UTC (rev 291509)
@@ -1,38 +0,0 @@
-<?php
-/**
- * This file generates the pyrus.phar file and PEAR2 package for Pyrus.
- *
- * **THIS SCRIPT IS OBSOLETE, USE THE STEPS BELOW INSTEAD**
- *
- * This whole script can be replaced with 2 steps:
- * php pyrus.phar install -pf ../Pyrus_Developer/package.xml
- * php -dphar.readonly=0 pyrus.phar make --package=phar
- */
-echo "Tip: Don't use this any more. Instead, use \pear2\Pyrus\Developer like so:
-php pyrus.phar install -pf ../Pyrus_Developer/package.xml
-php -dphar.readonly=0 pyrus.phar make --package=phar
-mv PEAR2_Pyrus-2.0.0a1.phar pyrus.phar\n";
-error_reporting(E_ALL);
-ini_set('display_errors',true);
-require_once dirname(__FILE__).'/../autoload.php';
-
-if (ini_get('phar.readonly') != "0") {
- throw new \pear2\Pyrus\Exception('Error: phar.readonly is not set to "0", pass
-d phar.readonly=0 to PHP');
-}
-
-//$a = new \pear2\Pyrus\Developer\PackageFile\PEAR2SVN(dirname(__FILE__), 'PEAR2_Pyrus');
-
-$package = new \pear2\Pyrus\Package(__DIR__ . '/package.xml');
-
-$creator = new pear2\Pyrus\Package\Creator(array(
- new pear2\Pyrus\Developer\Creator\Phar(
- 'PEAR2_Pyrus-' . $package->version['release'] .
'.phar',
- str_replace('@PACKAGE_VERSION@',
$package->version['release'], file_get_contents(__DIR__ . '/stub.php')),
- Phar::PHAR, PHAR::NONE,
- array(), null, $package, null, null)),
- dirname(__FILE__) . '/../Exception/src',
- dirname(__FILE__) . '/../Autoload/src',
- dirname(__FILE__) . '/../MultiErrors/src');
-$extrafiles = '';
-include __DIR__ . '/extrasetup.php';
-$creator->render($package, $extrafiles);
Modified: pear2/Pyrus/trunk/package.xml
===================================================================
--- pear2/Pyrus/trunk/package.xml 2009-11-30 16:34:15 UTC (rev 291508)
+++ pear2/Pyrus/trunk/package.xml 2009-11-30 16:45:24 UTC (rev 291509)
@@ -41,8 +41,8 @@
<email>saltybeagle@php.net</email>
<active>yes</active>
</lead>
- <date>2009-10-27</date>
- <time>11:13:52</time>
+ <date>2009-11-30</date>
+ <time>10:40:57</time>
<version>
<release>2.0.0a1</release>
<api>2.0.0a1</api>
Modified: pear2/Pyrus/trunk/package_compatible.xml
===================================================================
--- pear2/Pyrus/trunk/package_compatible.xml 2009-11-30 16:34:15 UTC (rev 291508)
+++ pear2/Pyrus/trunk/package_compatible.xml 2009-11-30 16:45:24 UTC (rev 291509)
@@ -41,8 +41,8 @@
<email>saltybeagle@php.net</email>
<active>yes</active>
</lead>
- <date>2009-10-27</date>
- <time>11:13:54</time>
+ <date>2009-11-30</date>
+ <time>10:41:00</time>
<version>
<release>2.0.0a1</release>
<api>2.0.0a1</api>
Modified: pear2/Pyrus/trunk/pyrus.phar
===================================================================
(Binary files differ)