mirror of
https://github.com/php/php-src.git
synced 2024-10-14 13:02:37 +00:00
15 lines
383 B
PHP
15 lines
383 B
PHP
|
<?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";
|
||
|
}
|
||
|
|
||
|
|
||
|
?>
|