SOURCES: php-pear-PEAR-cli.patch (NEW) - make it work with php4-cl...

glen glen at pld-linux.org
Fri Sep 30 16:14:51 CEST 2005


Author: glen                         Date: Fri Sep 30 14:14:51 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- make it work with php4-cli if php-cli is not available

---- Files affected:
SOURCES:
   php-pear-PEAR-cli.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/php-pear-PEAR-cli.patch
diff -u /dev/null SOURCES/php-pear-PEAR-cli.patch:1.1
--- /dev/null	Fri Sep 30 16:14:51 2005
+++ SOURCES/php-pear-PEAR-cli.patch	Fri Sep 30 16:14:46 2005
@@ -0,0 +1,18 @@
+--- ./usr/bin/pear~	2005-09-30 17:11:26.000000000 +0300
++++ ./usr/bin/pear	2005-09-30 17:13:14.000000000 +0300
+@@ -4,10 +4,12 @@
+ if test "x$PHP_PEAR_PHP_BIN" != "x"; then
+   PHP="$PHP_PEAR_PHP_BIN"
+ else
+-  if test "/usr/bin/php" = '@'php_bin'@'; then
+-    PHP=php 
+-  else
++  if [ -x "/usr/bin/php" ]; then
+     PHP="/usr/bin/php"
++  elif [ -x "/usr/bin/php4" ]; then
++    PHP="/usr/bin/php4"
++  else
++    PHP="php"
+   fi
+ fi
+ 
================================================================



More information about the pld-cvs-commit mailing list