From 0944772133d2be3af8b21606b8400ce0f8a6ceed Mon Sep 17 00:00:00 2001 From: lsmith Date: Tue, 29 Jan 2008 17:35:49 +0000 Subject: [PATCH] - initial commit of scripts to generate a Doctrine package.xml (this should be eventually be changed to just bundle core/dbal/orm) as well as those necessary for core, dbal and orm --- package.php | 80 ++++++++++++++++++++++++ package_Core.php | 137 +++++++++++++++++++++++++++++++++++++++++ package_DBAL.php | 154 +++++++++++++++++++++++++++++++++++++++++++++++ package_ORM.php | 123 +++++++++++++++++++++++++++++++++++++ 4 files changed, 494 insertions(+) create mode 100644 package.php create mode 100644 package_Core.php create mode 100644 package_DBAL.php create mode 100644 package_ORM.php diff --git a/package.php b/package.php new file mode 100644 index 000000000..0ee661c2a --- /dev/null +++ b/package.php @@ -0,0 +1,80 @@ + 'svn', + 'changelogoldtonew' => false, + 'simpleoutput' => true, + 'baseinstalldir' => '/', + 'packagedirectory' => './', + 'packagefile' => $packagefile, + 'clearcontents' => false, + 'ignore' => array( + 'vendor/', + 'tools/', + 'package*.php', + 'package*.xml', + ), + 'dir_roles' => array( + 'lib' => 'php', + 'manual' => 'doc', + 'models' => '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(); +} diff --git a/package_Core.php b/package_Core.php new file mode 100644 index 000000000..cb59203fd --- /dev/null +++ b/package_Core.php @@ -0,0 +1,137 @@ + 'svn', + 'changelogoldtonew' => false, + 'simpleoutput' => true, + 'baseinstalldir' => '/', + 'packagedirectory' => './', + 'packagefile' => $packagefile, + 'clearcontents' => false, + 'ignore' => array( + 'vendor/', + 'tools/', + 'package*.php', + 'package*.xml', + 'models/', + 'Access.php', + 'Adapter.php', + 'Adapter/', + 'Auditlog.php', + 'Auditlog/', + 'Cache.php', + 'Cache/', + 'Collection.php', + 'Collection/', + 'Column.php', + 'Connection.php', + 'Connection/', + 'DataDict.php', + 'DataDict/', + 'Export.php', + 'Export/', + 'Expression.php', + 'Expression/', + 'Hook.php', + 'Hook/', + 'Hydrator.php', + 'Hydrator/', + 'I18n.php', + 'I18n/', + 'Import.php', + 'Import/', + 'IntegrityMapper.php', + 'Locking/', + 'Manager.php', + 'Manager/', + 'Mapper/', + 'Migration.php', + 'Migration/', + 'Node.php', + 'Node/', + 'Pager.php', + 'Pager/', + 'Query.php', + 'Query/', + 'RawSql.php', + 'RawSql/', + 'Record.php', + 'Record/', + 'Relation.php', + 'Relation/', + 'Search.php', + 'Search/', + 'Sequence.php', + 'Sequence/', + 'Table.php', + 'Table/', + 'Template.php', + 'Template/', + 'Transaction.php', + 'Transaction/', + 'Tree.php', + 'Tree/', + 'Validator.php', + 'Validator/', + 'View.php', + 'View/', + ), + '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(); +} diff --git a/package_DBAL.php b/package_DBAL.php new file mode 100644 index 000000000..688645912 --- /dev/null +++ b/package_DBAL.php @@ -0,0 +1,154 @@ + 'svn', + 'changelogoldtonew' => false, + 'simpleoutput' => true, + 'baseinstalldir' => '/', + 'packagedirectory' => './', + 'packagefile' => $packagefile, + 'clearcontents' => false, + 'ignore' => array( + 'vendor/', + 'tools/', + 'package*.php', + 'package*.xml', + 'manual/', + 'models/', + 'tests/', + 'README', + 'CHANGELOG', + 'LICENSE', + 'COPYRIGHT', + 'Access.php', + 'Adapter.php', + 'Adapter/', + 'Auditlog.php', + 'Auditlog/', + 'Builder.php', + 'Builder/', + 'Cache.php', + 'Cache/', + 'Cli.php', + 'Cli/', + 'Collection.php', + 'Collection/', + 'Column.php', + 'Compiler.php', + 'Compiler/', + 'Configurable.php', + 'Data.php', + 'Data/', + 'Event.php', + 'Event/', + 'EventListener.php', + 'EventListener/', + 'Exception.php', + 'Expression.php', + 'Expression/', + 'File.php', + 'File/', + 'FileFinder.php', + 'FileFinder/', + 'Formatter.php', + 'Hook.php', + 'Hook/', + 'Hydrator.php', + 'Hydrator/', + 'I18n.php', + 'I18n/', + 'Inflector.php', + 'IntegrityMapper.php', + 'Lib.php', + 'Locator.php', + 'Locator/', + 'Locking/', + 'Log.php', + 'Log/', + 'Mapper/', + 'Migration.php', + 'Migration/', + 'Node.php', + 'Node/', + 'Null.php', + 'Overloadable.php', + 'Pager.php', + 'Pager/', + 'Parser.php', + 'Parser/', + 'Query.php', + 'Query/', + 'RawSql.php', + 'RawSql/', + 'Record.php', + 'Record/', + 'Relation.php', + 'Relation/', + 'Search.php', + 'Search/', + 'Table.php', + 'Table/', + 'Task.php', + 'Task/', + 'Template.php', + 'Template/', + 'Tree.php', + 'Tree/', + 'Util.php', + 'Validator.php', + 'Validator/', + 'View.php', + 'View/', + ), + 'dir_roles' => array( + 'lib' => 'php', + ), + '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(); +} diff --git a/package_ORM.php b/package_ORM.php new file mode 100644 index 000000000..671d131fe --- /dev/null +++ b/package_ORM.php @@ -0,0 +1,123 @@ + '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(); +}