php-src/pear/pear.in
Stig Bakken dca0d5852d #With "php -f file.php", file.php is unable to parse command-line
#options because they are swallowed by PHP.  Use "-q" option instead to
#avoid this but still supress HTTP headers.
2000-12-06 02:52:37 +00:00

20 lines
280 B
C++

#!@prefix@/bin/php -q
<?php // -*- C++ -*-
require_once "PEAR.php";
require_once "PEAR/Installer.php";
error_reporting(1);
$pkgfile = $argv[0];
if (!$pkgfile) {
die("Usage: pear <packagefile>\n");
}
$p = new PEAR_Installer();
$p->debug = true;
$p->install($pkgfile);
?>