cvs: pearweb /public_html go-pear

From: Date: Mon, 03 Feb 2003 00:55:22 +0000
Subject: cvs: pearweb /public_html go-pear
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-8699@lists.php.net to get a copy of this message
ssb Sun Feb 2 19:55:22 2003 EDT Modified files: /pearweb/public_html go-pear Log: * made "Fixing installer include_path..." work again Index: pearweb/public_html/go-pear diff -u pearweb/public_html/go-pear:1.32 pearweb/public_html/go-pear:1.33 --- pearweb/public_html/go-pear:1.32 Thu Jan 9 21:29:14 2003 +++ pearweb/public_html/go-pear Sun Feb 2 19:55:22 2003 @@ -16,7 +16,7 @@ # | Stig Sæther Bakken <stig@php.net> | # +----------------------------------------------------------------------+ # -# $Id: go-pear,v 1.32 2003/01/10 02:29:14 ssb Exp $ +# $Id: go-pear,v 1.33 2003/02/03 00:55:22 ssb Exp $ # # Automatically download all the files needed to run the "pear" command # (the PEAR package installer). Requires PHP 4.1.0 or newer. @@ -384,12 +384,12 @@ $fp = @fopen($pear_cmd, "r"); $wp = @fopen($tmpfile, "w"); if ($fp && $wp) { - $hashbang = rtrim(fgets($fp, 1024)); - if (substr($hashbang, 0, 9) != "#!/bin/sh" && - !strstr($hashbang, "include_path=")) { - $hashbang .= "d include_path=$php_dir"; + $hashbang = fgets($fp, 1024); + fwrite($wp, $hashbang); + if (substr($hashbang, 0, 9) == "#!/bin/sh") { + fwrite($wp, "PHP_PEAR_INSTALL_DIR=$php_dir;". + "export PHP_PEAR_INSTALL_DIR\n"); } - fwrite($wp, "$hashbang\n"); while ($data = fread($fp, 2048)) { fwrite($wp, $data); }

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