cvs: pear-core / make-installpear-nozlib-phar.php
| From: | Greg Beaver | Date: | Sat, 29 Oct 2005 19:41:12 +0000 |
| Subject: | cvs: pear-core / make-installpear-nozlib-phar.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-35951@lists.php.net to get a copy of this message | ||
cellog Sat Oct 29 15:41:12 2005 EDT
Modified files:
/pear-core make-installpear-nozlib-phar.php
Log:
do not bundle XML/RPC.php, as we don't need it any longer
for the .phar (it is still installed)
always install PEAR last, to avoid unnecessary error messages
http://cvs.php.net/diff.php/pear-core/make-installpear-nozlib-phar.php?r1=1.1&r2=1.2&ty=u
Index: pear-core/make-installpear-nozlib-phar.php
diff -u pear-core/make-installpear-nozlib-phar.php:1.1
pear-core/make-installpear-nozlib-phar.php:1.2
--- pear-core/make-installpear-nozlib-phar.php:1.1 Thu Oct 13 18:55:38 2005
+++ pear-core/make-installpear-nozlib-phar.php Sat Oct 29 15:41:12 2005
@@ -4,8 +4,7 @@
*
* PHP version 5.1+
*
- * To use, modify the $xmlrpcdir to point to the installed PEAR directory where RPC.php
- * from the XML_RPC package can be located. In pear-core/PEAR create a directory
+ * To use, in pear-core/PEAR create a directory
* named go-pear-tarballs, and run these commands in the directory
*
* <pre>
@@ -28,10 +27,9 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: make-installpear-nozlib-phar.php,v 1.1 2005/10/13 22:55:38 cellog Exp $
+ * @version CVS: $Id: make-installpear-nozlib-phar.php,v 1.2 2005/10/29 19:41:12 cellog Exp $
*/
$peardir = dirname(__FILE__);
-$xmlrpcdir = 'C:\php5\pear\XML';
$dp = @opendir(dirname(__FILE__) . '/PEAR/go-pear-tarballs');
if (empty($dp)) {
@@ -44,8 +42,13 @@
continue;
}
ereg('([A-Za-z0-9_:]+)-.*\.tar$', $entry, $matches);
+ if ($matches[1] == 'PEAR') {
+ $pearentry = $entry;
+ continue;
+ }
$packages[$matches[1]] = $entry;
}
+$packages['PEAR'] = $pearentry;
require_once 'PEAR/PackageFile.php';
require_once 'PEAR/Config.php';
require_once 'PHP/Archive/Creator.php';
@@ -254,7 +257,6 @@
$commandcontents);
$creator->addString($commandcontents, 'PEAR/PackageFile.php');
-$creator->addFile($xmlrpcdir . DIRECTORY_SEPARATOR . 'RPC.php',
'XML/RPC.php', true);
$creator->addDir($peardir, array('tests/',
'scripts/',
'go-pear-phar.php',
@@ -320,4 +322,4 @@
'System.php',
), 'install-pear-nozlib.phar');
$creator->savePhar(dirname(__FILE__) . DIRECTORY_SEPARATOR .
'install-pear-nozlib.phar');
-?>
\ No newline at end of file
+?>