setOptions(array( 'package' => 'perforce', 'summary' => 'Perforce API Extension', 'description' => $description, 'version' => $version, 'state' => 'alpha', 'license' => 'BSD License', 'filelistgenerator' => 'file', 'ignore' => array('package.php'), 'notes' => $notes, 'changelognotes' => $changelog, 'changelogoldtonew' => false, 'simpleoutput' => true, 'baseinstalldir' => '/', 'packagedirectory' => '')); if (PEAR::isError($result)) { echo $result->getMessage(); die(); } $package->addMaintainer('jon', 'lead', 'Jon Parise', 'jon@php.net'); if ($_SERVER['argv'][1] == 'commit') { $result = $package->writePackageFile(); } else { $result = $package->debugPackageFile(); } if (PEAR::isError($result)) { echo $result->getMessage(); die(); }