2008-01-29 20:35:49 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once('PEAR/PackageFileManager2.php');
|
|
|
|
PEAR::setErrorHandling(PEAR_ERROR_DIE);
|
|
|
|
|
|
|
|
$packagexml = new PEAR_PackageFileManager2;
|
|
|
|
|
|
|
|
$version_release = '0.9';
|
|
|
|
$version_api = $version_release;
|
|
|
|
$state = 'beta';
|
|
|
|
|
|
|
|
$notes = <<<EOT
|
|
|
|
barfoo
|
|
|
|
EOT;
|
|
|
|
|
|
|
|
$summary = 'PHP5 Database ORM';
|
|
|
|
|
|
|
|
$description =<<<EOT
|
|
|
|
Doctrine_ORM is an ORM (object relational mapper) for PHP 5.2.x+. One of its key
|
|
|
|
features is the ability to optionally write database queries in an OO
|
|
|
|
(object oriented) SQL-dialect called DQL inspired by Hibernates HQL. This
|
|
|
|
provides developers with a powerful alternative to SQL that maintains a maximum
|
|
|
|
of flexibility without requiring needless code duplication.
|
|
|
|
EOT;
|
|
|
|
|
2008-02-06 20:32:21 +03:00
|
|
|
$packagefile = './package_ORM.xml';
|
2008-01-29 20:35:49 +03:00
|
|
|
|
|
|
|
$options = array(
|
|
|
|
'filelistgenerator' => 'svn',
|
|
|
|
'changelogoldtonew' => false,
|
|
|
|
'simpleoutput' => true,
|
|
|
|
'baseinstalldir' => '/',
|
|
|
|
'packagedirectory' => './',
|
|
|
|
'packagefile' => $packagefile,
|
|
|
|
'clearcontents' => false,
|
2008-02-01 19:41:16 +03:00
|
|
|
'include' => array(
|
|
|
|
'models/',
|
|
|
|
'lib/Doctrine/Adapter/',
|
|
|
|
'lib/Doctrine/Auditlog/',
|
|
|
|
'lib/Doctrine/Cache/',
|
|
|
|
'lib/Doctrine/Collection/',
|
|
|
|
'lib/Doctrine/Hook/',
|
|
|
|
'lib/Doctrine/Hydrator/',
|
|
|
|
'lib/Doctrine/I18n/',
|
|
|
|
'lib/Doctrine/Locking/',
|
|
|
|
'lib/Doctrine/Mapper/',
|
|
|
|
'lib/Doctrine/Migration/',
|
|
|
|
'lib/Doctrine/Node/',
|
|
|
|
'lib/Doctrine/Query/',
|
|
|
|
'lib/Doctrine/RawSql/',
|
|
|
|
'lib/Doctrine/Search/',
|
|
|
|
'lib/Doctrine/Table/',
|
|
|
|
'lib/Doctrine/Template/',
|
|
|
|
'lib/Doctrine/Tree/',
|
|
|
|
'lib/Doctrine/Validator/',
|
|
|
|
'lib/Doctrine/View/',
|
2008-01-29 20:35:49 +03:00
|
|
|
),
|
|
|
|
'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();
|
|
|
|
}
|