Skip to content

Commit

Permalink
update for PHP_Archive 0.10.0 and pecl/phar 0.1.0
Browse files Browse the repository at this point in the history
change instructions to reflect the new process


git-svn-id: http://svn.php.net/repository/pear/pear-core/pear/pear-core/trunk@229094 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
cellog committed Feb 6, 2007
1 parent 1589820 commit 2ba2b44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions make-gopear-phar.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* go-pear.phar creator. Requires PHP_Archive version 0.6.0 or newer
* go-pear.phar creator. Requires PHP_Archive version 0.10.0 or newer
*
* PHP version 5.1+
*
Expand All @@ -11,7 +11,7 @@
* $ pear download -Z PEAR
* $ pear download -Z Archive_Tar
* $ pear download -Z Console_Getopt
* $ pear download -Z XML_RPC
* $ pear download -Z Structures_Graph
* </pre>
*
* finally, run this script using PHP 5.1's cli php
Expand Down Expand Up @@ -72,6 +72,7 @@
$pearver = $pf->getVersion();

$creator = new PHP_Archive_Creator('index.php', 'go-pear.phar', false);
$creator->useSHA1Signature();
foreach ($packages as $package) {
echo "adding PEAR/go-pear-tarballs/$package\n";
$creator->addFile("PEAR/go-pear-tarballs/$package", "PEAR/go-pear-tarballs/$package");
Expand Down
4 changes: 3 additions & 1 deletion make-installpear-nozlib-phar.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* install-pear-nozlib.phar creator. Requires PHP_Archive version 0.9.1 or newer
* install-pear-nozlib.phar creator. Requires PHP_Archive version 0.10.0 or newer
*
* PHP version 5.1+
*
Expand All @@ -11,6 +11,7 @@
* $ pear download -Z PEAR
* $ pear download -Z Archive_Tar
* $ pear download -Z Console_Getopt
* $ pear download -Z Structures_Graph
* </pre>
*
* finally, run this script using PHP 5.1's cli php
Expand Down Expand Up @@ -70,6 +71,7 @@
$pearver = $pf->getVersion();

$creator = new PHP_Archive_Creator('index.php', 'install-pear-nozlib.phar'); // no compression
$creator->useSHA1Signature();
$install_files = '$install_files = array(';
foreach ($packages as $name => $package) {
echo "$name => $package\n";
Expand Down

0 comments on commit 2ba2b44

Please sign in to comment.