'svn', 'changelogoldtonew' => false, 'simpleoutput' => true, 'baseinstalldir' => '/', 'packagedirectory' => './', 'packagefile' => $packagefile, 'clearcontents' => false, 'include' => array( 'manual/', 'tests/', 'lib/Doctrine.php', 'lib/Doctrine/Builder/', 'lib/Doctrine/Cli.php', 'lib/Doctrine/Compiler/', 'lib/Doctrine/Configurable/', 'lib/Doctrine/Cli.php', 'lib/Doctrine/Data/', 'lib/Doctrine/Exception/', 'lib/Doctrine/Event/', 'lib/Doctrine/EventListener/', 'lib/Doctrine/File/', 'lib/Doctrine/FileFinder/', 'lib/Doctrine/Formatter/', 'lib/Doctrine/Inflector/', 'lib/Doctrine/Lib.php', 'lib/Doctrine/Locator/', 'lib/Doctrine/Log/', 'lib/Doctrine/Null/', 'lib/Doctrine/Overloadable/', 'lib/Doctrine/Parser/', 'lib/Doctrine/Task/', 'lib/Doctrine/Util/', ), 'dir_roles' => array( 'lib' => 'php', 'manual' => 'doc', 'tests' => 'test', ), 'exceptions' => array( 'README' => 'doc', 'CHANGELOG' => 'doc', 'LICENSE' => 'doc', 'COPYRIGHT' => 'doc' ) ); $package = &PEAR_PackageFileManager2::importOptions($packagefile, $options); $package->setPackageType('php'); $package->clearDeps(); $package->setPhpDep('5.2.3'); $package->setPearInstallerDep('1.4.0b1'); $package->addPackageDepWithChannel('required', 'PEAR', 'pear.php.net', '1.3.6'); $package->addRelease(); $package->generateContents(); $package->setReleaseVersion($version_release); $package->setAPIVersion($version_api); $package->setReleaseStability($state); $package->setAPIStability($state); $package->setNotes($notes); $package->setSummary($summary); $package->setDescription($description); $package->addGlobalReplacement('package-info', '@package_version@', 'version'); if (isset($_GET['make']) || (isset($_SERVER['argv']) && @$_SERVER['argv'][1] == 'make')) { $package->writePackageFile(); } else { $package->debugPackageFile(); }