true, 'baseinstalldir' => '/', 'packagefile' => 'package.xml', 'packagedirectory' => dirname(__FILE__), 'filelistgenerator' => 'Git', 'dir_roles' => array( 'tests' => 'test', 'docs' => 'doc', 'data' => 'data' ), 'ignore' => array( 'package.xml', 'package2.xml', '*.tgz', basename(__FILE__) ) ); $pkg->setOptions($options); $desc = <<setPackage('Date'); $pkg->setSummary($summary); $pkg->setDescription($desc); $pkg->setChannel('pear.php.net'); $pkg->setAPIVersion('1.5.0'); $pkg->setReleaseVersion('1.5.0a2'); $pkg->setReleaseStability('alpha'); $pkg->setAPIStability('alpha'); $pkg->setNotes($notes); $pkg->setPackageType('php'); $pkg->setLicense('BSD License', 'http://www.opensource.org/licenses/bsd-license.php'); // Add maintainers. $pkg->addMaintainer('lead', 'baba', 'Baba Buehler', 'baba@babaz.com', 'no'); $pkg->addMaintainer('lead', 'pajoye', 'Pierre-Alain Joye', 'pajoye@php.net', 'no'); $pkg->addMaintainer('lead', 'mohrt', 'Monte Ohrt', 'mohrt@php.net', 'no'); $pkg->addMaintainer('lead', 'firman', 'Firman Wandayandi', 'firman@php.net'); $pkg->addMaintainer('lead', 'c01234', 'C.A. Woodcock', 'c01234@netcomuk.co.uk'); $pkg->addMaintainer('developer', 'alan_k', 'Alan Knowles', 'alan@akbkhome.com'); $pkg->addMaintainer('helper', 'scar', 'Leonardo Dutra', 'scar@php.net'); // Core dependencies. $pkg->setPhpDep('4.3'); $pkg->setPearinstallerDep('1.4.0'); //$pkg->addDependency("Numbers_Words", "0.15.0", "eq", "pkg", true); //$pkg->detectDependencies(); // Add some replacements. $pkg->addGlobalReplacement('package-info', '@package_version@', 'version'); // Generate file contents. $pkg->generateContents(); // Writes a package.xml. if (isset($_GET['make']) || (isset($_SERVER['argv']) && @$_SERVER['argv'][1] == 'make')) { $e = $pkg->writePackageFile(); // Some errors occurs. if (PEAR::isError($e)) { throw new Exception('Unable to write package file. Got message: ' . $e->getMessage()); } } else { $pkg->debugPackageFile(); } /* * Local variables: * mode: php * tab-width: 4 * c-basic-offset: 4 * c-hanging-comment-ender-p: nil * End: */ ?>