cvs: pear-core / make-installpear-phar.php

From: Date: Sat, 29 Oct 2005 19:40:50 +0000
Subject: cvs: pear-core / make-installpear-phar.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-35950@lists.php.net to get a copy of this message
cellog Sat Oct 29 15:40:50 2005 EDT Modified files: /pear-core make-installpear-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-phar.php?r1=1.7&r2=1.8&ty=u Index: pear-core/make-installpear-phar.php diff -u pear-core/make-installpear-phar.php:1.7 pear-core/make-installpear-phar.php:1.8 --- pear-core/make-installpear-phar.php:1.7 Mon Sep 5 15:07:15 2005 +++ pear-core/make-installpear-phar.php Sat Oct 29 15:40:47 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-phar.php,v 1.7 2005/09/05 19:07:15 cellog Exp $ + * @version CVS: $Id: make-installpear-phar.php,v 1.8 2005/10/29 19:40:47 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.phar'); $creator->savePhar(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'install-pear.phar'); -?> \ No newline at end of file +?>

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