home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / php / tmp / PEAR-1.7.1 / scripts / pecl.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  2008-02-15  |  691 b   |  29 lines

  1. #!/bin/sh
  2.  
  3. # first find which PHP binary to use
  4. if test "x$PHP_PEAR_PHP_BIN" != "x"; then
  5.   PHP="$PHP_PEAR_PHP_BIN"
  6. else
  7.   if test "@php_bin@" = '@'php_bin'@'; then
  8.     PHP=php 
  9.   else
  10.     PHP="@php_bin@"
  11.   fi
  12. fi
  13.  
  14. # then look for the right pear include dir
  15. if test "x$PHP_PEAR_INSTALL_DIR" != "x"; then
  16.   INCDIR=$PHP_PEAR_INSTALL_DIR
  17.   INCARG="-d include_path=$PHP_PEAR_INSTALL_DIR"
  18. else
  19.   if test "@php_dir@" = '@'php_dir'@'; then
  20.     INCDIR=`dirname $0`
  21.     INCARG=""  
  22.   else
  23.     INCDIR="@php_dir@"
  24.     INCARG="-d include_path=@php_dir@"
  25.   fi
  26. fi
  27.  
  28. exec $PHP -C -n -q $INCARG -d output_buffering=1 -d variables_order=EGPCS -d safe_mode=0 -d register_argc_argv="On" $INCDIR/peclcmd.php "$@"
  29.