cvs: pear-core / make-installpear-phar.php
| From: | Greg Beaver | Date: | Sun, 14 Aug 2005 07:11:36 +0000 |
| Subject: | cvs: pear-core / make-installpear-phar.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-3524@lists.php.net to get a copy of this message | ||
cellog Sun Aug 14 03:11:36 2005 EDT
Modified files:
/pear-core make-installpear-phar.php
Log:
tweak OS_Guess addition (include_once 'System.php' needs
processing)
http://cvs.php.net/diff.php/pear-core/make-installpear-phar.php?r1=1.1&r2=1.2&ty=u
Index: pear-core/make-installpear-phar.php
diff -u pear-core/make-installpear-phar.php:1.1 pear-core/make-installpear-phar.php:1.2
--- pear-core/make-installpear-phar.php:1.1 Sun Aug 14 02:56:23 2005
+++ pear-core/make-installpear-phar.php Sun Aug 14 03:11:36 2005
@@ -164,6 +164,20 @@
$commandcontents);
$creator->addString($commandcontents, 'PEAR/PackageFile/Generator/v2.php');
+$commandcontents = file_get_contents($peardir . DIRECTORY_SEPARATOR . 'OS' .
+ DIRECTORY_SEPARATOR . 'Guess.php');
+$commandcontents = str_replace(
+ array(
+ "include_once \"",
+ "@package_version@",
+ ),
+ array(
+ "include_once \"phar://go-pear.phar/",
+ $pearver,
+ ),
+ $commandcontents);
+$creator->addString($commandcontents, 'OS/Guess.php');
+
$commandcontents = file_get_contents($peardir . DIRECTORY_SEPARATOR . 'PEAR' .
DIRECTORY_SEPARATOR . 'Dependency2.php');
$commandcontents = str_replace(
@@ -200,6 +214,7 @@
$creator->addDir($peardir, array('tests/',
'scripts/',
'go-pear-phar.php',
+ '*OS/Guess.php',
'*PEAR/Command.php',
'*PEAR/Dependency2.php',
'*PEAR/PackageFile/Generator/v1.php',
@@ -255,7 +270,6 @@
'*PEAR/Validate.php',
'*PEAR/XMLParser.php',
'PEAR.php',
- '*OS/Guess.php',
'*Archive/Tar.php',
'*Console/Getopt.php',
'System.php',