Permalink
Browse files

update for release 1.0.0

  • Loading branch information...
Firman Wandayandi
Firman Wandayandi committed Jan 31, 2006
1 parent 0714e36 commit b2b63262ff03ad9148aed47305cfa13a7bda0402
Showing with 192 additions and 153 deletions.
  1. +37 −35 generate_package_xml.php
  2. +155 −118 package.xml
View
@@ -1,52 +1,50 @@
<?php
require_once('PEAR/PackageFileManager.php');
+require_once 'PEAR/Config.php';
$pkg = new PEAR_PackageFileManager;
+$config = new PEAR_Config;
$packagedir = dirname(__FILE__);
-$self = basename(__FILE__);
-$category = 'Math';
-$packagedesc =
-'Math_Numerical_RootFinding is the package' . "\n" .
-'provide various Numerical Methods Root-Finding' . "\n" .
-'functions implemented in PHP, e.g Bisection,' . "\n" .
-'Newton-Raphson, Fixed Point, Secant etc.' . "\n";
+$desc = <<<EOT
+Math_Numerical_RootFinding is the package
+provide various Numerical Methods Root-Finding
+functions implemented in PHP, e.g Bisection .
+Newton-Raphson, Fixed Point, Secant etc
+EOT;
-$packagenotes =
-'- changed license into BSD License' . "\n" .
-'- removed file \'Bracketing.php\'' . "\n" .
-'- removed file \'Open.php\'' . "\n" .
-'- introduce new abstract class' . "\n" .
-' Math_Numerical_RootFinding_Common' . "\n" .
-'- renamed all method filenames to uppercase' . "\n" .
-' first letter' . "\n" .
-'- fixed Bug #2897: Capitalization type in' . "\n" .
-' falseposition.php' . "\n" .
-'- renamed all compute function names from' . "\n" .
-' method name e.g bisection() into compute()' . "\n" .
-'- added new function infoCompute() to provide' . "\n" .
-' information about compute function arguments' . "\n" .
-'- applied divergent testing into all methods' . "\n";
+$notes = <<<EOT
+* Fixed method name capitol bug in Math_Numerical_RootFinding::factory(), thanks to Keith Palmer Jr.
+* Now all method driver names are using insensitive-case alias
+* Converted all header comment block into current coding standard
+* Added Matthew Fonda as package co-lead
+* This is first stable version release
+EOT;
$options = array(
- 'doctype' => 'D:\Net\www\htdocs\PEAR\PEAR\data\PEAR\package.dtd',
+ 'simpleoutput' => true,
+ 'doctype' => $config->get('data_dir') . '/PEAR/package.dtd',
'package' => 'Math_Numerical_RootFinding',
'license' => 'BSD License',
'baseinstalldir' => '',
- 'version' => '0.3.0',
+ 'version' => '1.0.0',
'packagedirectory' => $packagedir,
'pathtopackagefile' => $packagedir,
- 'state' => 'alpha',
- 'filelistgenerator' => 'file',
- 'notes' => $packagenotes,
- 'summary' => 'Numerical Methods Root-Finding functions package',
- 'description' => $packagedesc,
+ 'state' => 'stable',
+ 'filelistgenerator' => 'cvs',
+ 'notes' => $notes,
+ 'summary' => 'Numerical Methods Root-Finding collection package',
+ 'description' => $desc,
+ 'dir_roles' => array(
+ 'docs' => 'doc',
+ 'data' => 'data'
+ ),
'ignore' => array(
- 'package.xml',
- '*.tgz',
- $self
- )
+ 'package.xml',
+ '*.tgz',
+ basename(__FILE__)
+ )
);
$e = $pkg->setOptions($options);
@@ -68,11 +66,15 @@
$pkg->addRole('pkg', 'doc');
$pkg->addRole('cls', 'doc');
$pkg->addRole('proc', 'doc');
-$pkg->addRole('sh', 'script');
$pkg->addRole('txt', 'doc');
+$pkg->addRole('sh', 'script');
-$pkg->addDependency('php', '4.2.0', 'ge', 'php');
$pkg->addMaintainer('firman', 'lead', 'Firman Wandayandi', 'firman@php.net');
+$pkg->addMaintainer('mfonda', 'lead', 'Matthew Fonda', 'mfonda@php.net');
+
+$pkg->addDependency('php', '4.2.0', 'ge', 'php');
+
+$e = $pkg->addGlobalReplacement('package-info', '@package_version@', 'version');
$e = $pkg->writePackageFile();
if (PEAR::isError($e)) {
View
@@ -1,126 +1,151 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
+<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0">
-<package version="1.0">
- <name>Math_Numerical_RootFinding</name>
- <summary>Numerical Methods Root-Finding functions package</summary>
- <description>Math_Numerical_RootFinding is the package
+<package version="1.0" packagerversion="1.4.6">
+ <name>Math_Numerical_RootFinding</name>
+ <summary>Numerical Methods Root-Finding collection package</summary>
+ <description>Math_Numerical_RootFinding is the package
provide various Numerical Methods Root-Finding
-functions implemented in PHP, e.g Bisection,
-Newton-Raphson, Fixed Point, Secant etc.
-</description>
- <maintainers>
- <maintainer>
- <user>firman</user>
- <name>Firman Wandayandi</name>
- <email>firman@php.net</email>
- <role>lead</role>
- </maintainer>
+functions implemented in PHP, e.g Bisection .
+Newton-Raphson, Fixed Point, Secant etc
+ </description>
+ <maintainers>
+ <maintainer>
+ <user>firman</user>
+ <name>Firman Wandayandi</name>
+ <email>firman@php.net</email>
+ <role>lead</role>
+ </maintainer>
+ <maintainer>
+ <user>mfonda</user>
+ <name>Matthew Fonda</name>
+ <email>mfonda@php.net</email>
+ <role>lead</role>
+ </maintainer>
</maintainers>
- <release>
+ <release>
+ <version>1.0.0</version>
+ <date>2006-02-01</date>
+ <license>BSD License</license>
+ <state>stable</state>
+ <notes>* Fixed method name capitol bug in Math_Numerical_RootFinding::factory(), thanks to Keith Palmer Jr.
+* Now all method driver names are using insensitive-case alias
+* Converted all header comment block into current coding standard
+* Added Matthew Fonda as package co-lead
+* This is first stable version release
+ </notes>
+ <deps>
+ <dep type="php" rel="ge" version="4.2.0" optional="no"/>
+ </deps>
+ <filelist>
+ <dir name="/" baseinstalldir="">
+ <dir name="docs">
+ <dir name="examples">
+ <file role="doc" name="Bisection.php">
+ <replace type="package-info" from="@package_version@" to="version"/>
+ </file>
+ <file role="doc" name="FalsePosition.php">
+ <replace type="package-info" from="@package_version@" to="version"/>
+ </file>
+ <file role="doc" name="FixedPoint.php">
+ <replace type="package-info" from="@package_version@" to="version"/>
+ </file>
+ <file role="doc" name="Newton-Raphson.php">
+ <replace type="package-info" from="@package_version@" to="version"/>
+ </file>
+ <file role="doc" name="Newton-Raphson2.php">
+ <replace type="package-info" from="@package_version@" to="version"/>
+ </file>
+ <file role="doc" name="Ralston-Rabinowitz.php">
+ <replace type="package-info" from="@package_version@" to="version"/>
+ </file>
+ <file role="doc" name="Secant.php">
+ <replace type="package-info" from="@package_version@" to="version"/>
+ </file>
+ </dir> <!-- /docs/examples -->
+ <file role="doc" name="README.txt">
+ <replace type="package-info" from="@package_version@" to="version"/>
+ </file>
+ </dir> <!-- /docs -->
+ <dir name="Math">
+ <dir name="Numerical">
+ <dir name="RootFinding">
+ <file role="php" name="Bisection.php">
+ <replace type="package-info" from="@package_version@" to="version"/>
+ </file>
+ <file role="php" name="Common.php">
+ <replace type="package-info" from="@package_version@" to="version"/>
+ </file>
+ <file role="php" name="FalsePosition.php">
+ <replace type="package-info" from="@package_version@" to="version"/>
+ </file>
+ <file role="php" name="FixedPoint.php">
+ <replace type="package-info" from="@package_version@" to="version"/>
+ </file>
+ <file role="php" name="NewtonRaphson.php">
+ <replace type="package-info" from="@package_version@" to="version"/>
+ </file>
+ <file role="php" name="NewtonRaphson2.php">
+ <replace type="package-info" from="@package_version@" to="version"/>
+ </file>
+ <file role="php" name="RalstonRabinowitz.php">
+ <replace type="package-info" from="@package_version@" to="version"/>
+ </file>
+ <file role="php" name="Secant.php">
+ <replace type="package-info" from="@package_version@" to="version"/>
+ </file>
+ </dir> <!-- /Math/Numerical/RootFinding -->
+ <file role="php" name="RootFinding.php">
+ <replace type="package-info" from="@package_version@" to="version"/>
+ </file>
+ </dir> <!-- /Math/Numerical -->
+ </dir> <!-- /Math -->
+ </dir> <!-- / -->
+ </filelist>
+ </release>
+ <changelog>
+ <release>
+ <version>0.1.0</version>
+ <date>2004-03-24</date>
+ <license>PHP License</license>
+ <state>alpha</state>
+ <notes>Initial release of Math_Numerical_RootFinding
+ </notes>
+ </release>
+ <release>
+ <version>0.2.0</version>
+ <date>2004-07-10</date>
+ <license>PHP License</license>
+ <state>alpha</state>
+ <notes>- Extremely API break.
+- Changed Math_Numerical_RoofFinding class
+ type to container and abstract class.
+- Separated the method to a class.
+- Added new classes:
+ o Math_Numerical_RootFinding_Bracketing
+ o Math_Numerical_RootFinding_Open
+ o Math_Numerical_RootFinding_bisection
+ o Math_Numerical_RootFinding_falseposition
+ o Math_Numerical_RootFinding_fixedpoint
+ o Math_Numerical_RootFinding_newtonraphson
+ o Math_Numerical_RootFinding_secant
+ o Math_Numerical_RootFinding_ralstonrabinowitz
+ o Math_Numerical_RootFinding_newtonraphson2
+- Fixed algorithm for all methods.
+- Added new support method Ralston and
+ Rabinowitz
+- Added new support method Newton-Raphson2
+- Divergency testing in Open methods, now
+ completely done for all of iteration.
+ </notes>
+ </release>
+ <release>
<version>0.3.0</version>
<date>2005-01-18</date>
<license>BSD License</license>
<state>alpha</state>
<notes>- changed license into BSD License
-- removed file 'Bracketing.php'
-- removed file 'Open.php'
-- introduce new abstract class
- Math_Numerical_RootFinding_Common
-- renamed all method filenames to uppercase
- first letter
-- fixed Bug #2897: Capitalization type in
- falseposition.php
-- renamed all compute function names from
- method name e.g bisection() into compute()
-- added new function infoCompute() to provide
- information about compute function arguments
-- applied divergent testing into all methods
-</notes>
- <deps>
- <dep type="php" rel="ge" version="4.2.0" optional="no"/>
- </deps>
- <provides type="class" name="Math_Numerical_RootFinding" />
- <provides type="function" name="Math_Numerical_RootFinding::factory" />
- <provides type="class" name="Math_Numerical_RootFinding_Bisection" extends="Math_Numerical_RootFinding_Common" />
- <provides type="function" name="Math_Numerical_RootFinding_Bisection::infoCompute" />
- <provides type="function" name="Math_Numerical_RootFinding_Bisection::compute" />
- <provides type="class" name="Math_Numerical_RootFinding_Common" />
- <provides type="function" name="Math_Numerical_RootFinding_Common::set" />
- <provides type="function" name="Math_Numerical_RootFinding_Common::compute" />
- <provides type="function" name="Math_Numerical_RootFinding_Common::getRoot" />
- <provides type="function" name="Math_Numerical_RootFinding_Common::getIterationCount" />
- <provides type="function" name="Math_Numerical_RootFinding_Common::getEpsError" />
- <provides type="function" name="Math_Numerical_RootFinding_Common::isDivergentRows" />
- <provides type="function" name="Math_Numerical_RootFinding_Common::reset" />
- <provides type="function" name="Math_Numerical_RootFinding_Common::validateEqFunction" />
- <provides type="function" name="Math_Numerical_RootFinding_Common::getEqResult" />
- <provides type="class" name="Math_Numerical_RootFinding_Falseposition" extends="Math_Numerical_RootFinding_Common" />
- <provides type="function" name="Math_Numerical_RootFinding_Falseposition::infoCompute" />
- <provides type="function" name="Math_Numerical_RootFinding_Falseposition::compute" />
- <provides type="class" name="Math_Numerical_RootFinding_Fixedpoint" extends="Math_Numerical_RootFinding_Common" />
- <provides type="function" name="Math_Numerical_RootFinding_Fixedpoint::infoCompute" />
- <provides type="function" name="Math_Numerical_RootFinding_Fixedpoint::compute" />
- <provides type="class" name="Math_Numerical_RootFinding_Newtonraphson" extends="Math_Numerical_RootFinding_Common" />
- <provides type="function" name="Math_Numerical_RootFinding_Newtonraphson::infoCompute" />
- <provides type="function" name="Math_Numerical_RootFinding_Newtonraphson::compute" />
- <provides type="class" name="Math_Numerical_RootFinding_Newtonraphson2" extends="Math_Numerical_RootFinding_Common" />
- <provides type="function" name="Math_Numerical_RootFinding_Newtonraphson2::infoCompute" />
- <provides type="function" name="Math_Numerical_RootFinding_Newtonraphson2::compute" />
- <provides type="class" name="Math_Numerical_RootFinding_Ralstonrabinowitz" extends="Math_Numerical_RootFinding_Common" />
- <provides type="function" name="Math_Numerical_RootFinding_Ralstonrabinowitz::infoCompute" />
- <provides type="function" name="Math_Numerical_RootFinding_Ralstonrabinowitz::compute" />
- <provides type="class" name="Math_Numerical_RootFinding_Secant" extends="Math_Numerical_RootFinding_Common" />
- <provides type="function" name="Math_Numerical_RootFinding_Secant::infoCompute" />
- <provides type="function" name="Math_Numerical_RootFinding_Secant::compute" />
- <filelist>
- <file role="doc" baseinstalldir="" md5sum="c0d6e24f062db00392c64ced13cc1cdf" name="examples/Bisection.php"/>
- <file role="doc" baseinstalldir="" md5sum="203e4d82f90369e8e3528a5780e6f7bd" name="examples/FalsePosition.php"/>
- <file role="doc" baseinstalldir="" md5sum="dce43187bf0fb1575572aef16f8eaad8" name="examples/FixedPoint.php"/>
- <file role="doc" baseinstalldir="" md5sum="e341f7356924f1cf7111b00fba1182dc" name="examples/Newton-Raphson.php"/>
- <file role="doc" baseinstalldir="" md5sum="4a17d6ad110efe5cd7d45436aee16ffd" name="examples/Newton-Raphson2.php"/>
- <file role="doc" baseinstalldir="" md5sum="78e55530752050f5df6ffaae90d5dff0" name="examples/Ralston-Rabinowitz.php"/>
- <file role="doc" baseinstalldir="" md5sum="258d67da28734efe231ffd71e7545be6" name="examples/Secant.php"/>
- <file role="php" baseinstalldir="" md5sum="0fd5d687880baaa3b904abc5655bf5aa" name="Math/Numerical/RootFinding.php"/>
- <file role="php" baseinstalldir="" md5sum="990285f13c485bc5dffe10c4aaaac9f1" name="Math/Numerical/RootFinding/Bisection.php"/>
- <file role="php" baseinstalldir="" md5sum="12157f7bc0d490f219ee7d6e94c94543" name="Math/Numerical/RootFinding/Common.php"/>
- <file role="php" baseinstalldir="" md5sum="47e3110bcf8c63210f55daad5d412b6b" name="Math/Numerical/RootFinding/Falseposition.php"/>
- <file role="php" baseinstalldir="" md5sum="be815d667f519e158dce1bfb6b3f0fe3" name="Math/Numerical/RootFinding/Fixedpoint.php"/>
- <file role="php" baseinstalldir="" md5sum="8c5f3127839a9f98274960af9f325834" name="Math/Numerical/RootFinding/Newtonraphson.php"/>
- <file role="php" baseinstalldir="" md5sum="fc6d2564a4f985212ec5765286810ebb" name="Math/Numerical/RootFinding/Newtonraphson2.php"/>
- <file role="php" baseinstalldir="" md5sum="fe7e493e1860f734cb3bb32fac79f0e5" name="Math/Numerical/RootFinding/Ralstonrabinowitz.php"/>
- <file role="php" baseinstalldir="" md5sum="3b967beb6d2ae14a8955a204493448b0" name="Math/Numerical/RootFinding/Secant.php"/>
- <file role="doc" baseinstalldir="" md5sum="0bfc31704754cd4ec193c843f0b91e8c" name="README.txt"/>
- </filelist>
- </release>
- <changelog>
- <release>
- <version>0.2.1</version>
- <date>2005-01-17</date>
- <license>BSD License</license>
- <state>alpha</state>
- <notes>- changed license into BSD License
-- removed file 'Bracketing.php'
-- removed file 'Open.php'
-- introduce new abstract class
- Math_Numerical_RootFinding_Common
-- renamed all method filenames to uppercase
- first letter
-- fixed Bug #2897: Capitalization type in
- falseposition.php
-- renamed all compute function names from
- method name e.g bisection() into compute()
-- added new function infoCompute() to provide
- information about compute function arguments
-- applied divergent testing into all methods</notes>
- </release>
- <release>
- <version>0.3.0</version>
- <date>2005-01-18</date>
- <license>BSD License</license>
- <state>alpha</state>
- <notes>- changed license into BSD License
-- removed file 'Bracketing.php'
-- removed file 'Open.php'
+- removed file &apos;Bracketing.php&apos;
+- removed file &apos;Open.php&apos;
- introduce new abstract class
Math_Numerical_RootFinding_Common
- renamed all method filenames to uppercase
@@ -132,7 +157,19 @@ Newton-Raphson, Fixed Point, Secant etc.
- added new function infoCompute() to provide
information about compute function arguments
- applied divergent testing into all methods
-</notes>
- </release>
- </changelog>
+ </notes>
+ </release>
+ <release>
+ <version>1.0.0</version>
+ <date>2006-02-01</date>
+ <license>BSD License</license>
+ <state>stable</state>
+ <notes>* Fixed method name capitol bug in Math_Numerical_RootFinding::factory(), thanks to Keith Palmer Jr.
+* Now all method driver names are using insensitive-case alias
+* Converted all header comment block into current coding standard
+* Added Matthew Fonda as package co-lead
+* This is first stable version release
+ </notes>
+ </release>
+ </changelog>
</package>

0 comments on commit b2b6326

Please sign in to comment.