[ Index ]
 

Code source de SPIP Agora 1.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/Pear/scripts/ -> pear.bat (source)

   1  @ECHO OFF
   2  
   3  REM ----------------------------------------------------------------------
   4  REM PHP version 5
   5  REM ----------------------------------------------------------------------
   6  REM Copyright (c) 1997-2004 The PHP Group
   7  REM ----------------------------------------------------------------------
   8  REM  This source file is subject to version 3.0 of the PHP license, 
   9  REM  that is bundled with this package in the file LICENSE, and is
  10  REM  available at through the world-wide-web at
  11  REM  http://www.php.net/license/3_0.txt. 
  12  REM  If you did not receive a copy of the PHP license and are unable to
  13  REM  obtain it through the world-wide-web, please send a note to
  14  REM  license@php.net so we can mail you a copy immediately.
  15  REM ----------------------------------------------------------------------
  16  REM  Authors:     Alexander Merz (alexmerz@php.net)
  17  REM ----------------------------------------------------------------------
  18  REM
  19  REM  Last updated 3/13/2004 ($Id$ is not replaced if the file is binary)
  20  
  21  REM change this lines to match the paths of your system
  22  REM -------------------
  23  
  24  @ECHO OFF
  25  :: Check PEAR global ENV, set them if they do not exist
  26  IF "%PHP_PEAR_INSTALL_DIR%"=="" SET "PHP_PEAR_INSTALL_DIR=@include_path@"
  27  IF "%PHP_PEAR_BIN_DIR%"=="" SET "PHP_PEAR_BIN_DIR=@bin_dir@"
  28  IF "%PHP_PEAR_PHP_BIN%"=="" SET "PHP_PEAR_PHP_BIN=@php_bin@"
  29   
  30  :: Check Folders and files
  31  IF NOT EXIST "%PHP_PEAR_INSTALL_DIR%" GOTO PEAR_INSTALL_ERROR
  32  IF NOT EXIST "%PHP_PEAR_INSTALL_DIR%\pearcmd.php" GOTO PEAR_INSTALL_ERROR2
  33  IF NOT EXIST "%PHP_PEAR_BIN_DIR%" GOTO PEAR_BIN_ERROR
  34  IF NOT EXIST "%PHP_PEAR_PHP_BIN%" GOTO PEAR_PHPBIN_ERROR
  35  :: launch pearcmd
  36  GOTO RUN
  37  :PEAR_INSTALL_ERROR
  38  ECHO PHP_PEAR_INSTALL_DIR is not set correctly.
  39  ECHO Please fix it using your environment variable or modify
  40  ECHO the default value in pear.bat
  41  ECHO The current value is:
  42  ECHO %PHP_PEAR_INSTALL_DIR%
  43  GOTO END
  44  :PEAR_INSTALL_ERROR2
  45  ECHO PHP_PEAR_INSTALL_DIR is not set correctly.
  46  ECHO pearcmd.php could not be found there.
  47  ECHO Please fix it using your environment variable or modify
  48  ECHO the default value in pear.bat
  49  ECHO The current value is:
  50  ECHO %PHP_PEAR_INSTALL_DIR%
  51  GOTO END
  52  :PEAR_BIN_ERROR
  53  ECHO PHP_PEAR_BIN_DIR is not set correctly.
  54  ECHO Please fix it using your environment variable or modify
  55  ECHO the default value in pear.bat
  56  ECHO The current value is:
  57  ECHO %PHP_PEAR_BIN_DIR%
  58  GOTO END
  59  :PEAR_PHPBIN_ERROR
  60  ECHO PHP_PEAR_PHP_BIN is not set correctly.
  61  ECHO Please fix it using your environment variable or modify
  62  ECHO the default value in pear.bat
  63  ECHO The current value is:
  64  ECHO %PHP_PEAR_PHP_BIN%
  65  GOTO END
  66  :RUN
  67  "%PHP_PEAR_PHP_BIN%" -C -d output_buffering=1 -d include_path="%PHP_PEAR_INSTALL_DIR%" -f "%PHP_PEAR_INSTALL_DIR%\pearcmd.php" -- %1 %2 %3 %4 %5 %6 %7 %8 %9
  68  :END
  69  @ECHO ON


Généré le : Sat Feb 24 14:40:03 2007 par Balluche grâce à PHPXref 0.7