'svn', 'changelogoldtonew' => false, 'simpleoutput' => true, 'baseinstalldir' => '/', 'packagedirectory' => './', 'packagefile' => $packagefile, 'clearcontents' => false, 'ignore' => array( 'vendor/', 'tools/', 'package*.php', 'package*.xml', 'manual/', 'tests/', 'README', 'CHANGELOG', 'LICENSE', 'COPYRIGHT', 'Builder.php', 'Builder/', 'Cli.php', 'Cli/', 'Compiler.php', 'Compiler/', 'Configurable.php', 'Connection.php', 'Connection/', 'Data.php', 'Data/', 'Event.php', 'Event/', 'EventListener.php', 'EventListener/', 'Exception.php', 'Export.php', 'Export/', 'File.php', 'File/', 'FileFinder.php', 'FileFinder/', 'Formatter.php', 'Import.php', 'Import/', 'Inflector.php', 'Lib.php', 'Locator.php', 'Locator/', 'Log.php', 'Log/', 'Mapper/', 'Manager.php', 'Manager/', 'Null.php', 'Parser.php', 'Parser/', 'Sequence.php', 'Sequence/', 'Task.php', 'Task/', 'Transaction.php', 'Transaction/', 'Util.php', ), 'dir_roles' => array( 'lib' => 'php', 'models' => 'doc', ), 'exceptions' => array( ) ); $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(); }