From: Pierre Joye Date: Fri, 18 Aug 2006 12:44:27 +0000 (+0000) Subject: - add this script to the 4.4 branche, may help... X-Git-Tag: php-4.4.5RC1~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1fe8b81aa8301062864dfb394ceeb13e863e881;p=php - add this script to the 4.4 branche, may help... --- diff --git a/pear/go-pear-list.php b/pear/go-pear-list.php index 3085306cce..072e56e606 100755 --- a/pear/go-pear-list.php +++ b/pear/go-pear-list.php @@ -17,5 +17,3 @@ $packages = array( "HTML_Template_IT" => "1.1", "Net_UserAgent_Detect" => "2.0.1", ); - -?> diff --git a/pear/make-pear-bundle.php b/pear/make-pear-bundle.php new file mode 100755 index 0000000000..5956206e75 --- /dev/null +++ b/pear/make-pear-bundle.php @@ -0,0 +1,114 @@ +#!/usr/bin/php + $version) { + $filename = "$name-$version.tgz"; + $destfilename = "$dist_dir/PEAR/go-pear-bundle/$filename"; + if (file_exists($destfilename)) + continue; + $url = "http://pear.php.net/get/$filename"; + echo "Downloading $name from $url\n"; + flush(); + copy($url, $destfilename); +} + +echo "Download complete. Extracting bootstrap files\n"; + +/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar) + * broken out of the tarballs */ +extract_file_from_tarball('PEAR', 'PEAR.php', "$dist_dir/PEAR/go-pear-bundle"); +extract_file_from_tarball('Archive_Tar', 'Archive/Tar.php', "$dist_dir/PEAR/go-pear-bundle"); +extract_file_from_tarball('Console_Getopt', 'Console/Getopt.php', "$dist_dir/PEAR/go-pear-bundle"); +?>