summaryrefslogtreecommitdiff
path: root/pear/scripts/pearcmd-package.php
blob: 5cc485a93751292ce28c7b926eed698aaf00bddd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

include_once 'PEAR/Packager.php';
$pkginfofile = isset($cmdargs[0]) ? $cmdargs[0] : null;
$packager =& new PEAR_Packager($script_dir, $ext_dir, $doc_dir);
$packager->setErrorHandling(PEAR_ERROR_DIE, "pear page: %s\n");
$packager->debug = $verbose;
if (PEAR::isError($packager->Package($pkginfofile))) {
    print "\npackage failed\n";
} else {
    print "package ok\n";
}


?>