#!/boot/phpinst/bin/php -f
<?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);

?>
