summaryrefslogtreecommitdiff
path: root/pear/pear.in
blob: 1ea5ad88e3adc51e1e763f0769de36f5862bed13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!@prefix@/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);

?>