Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

no more package2.xml and renamed package xml generator file

  • Loading branch information...
commit 18b7b741f2035c77c1e965c80f1bf37fe480e0d5 1 parent 092aa4c
Firman Wandayandi authored
Showing with 0 additions and 302 deletions.
  1. +0 −83 generate_package_xml.php
  2. +0 −219 package2.xml
View
83 generate_package_xml.php
@@ -1,83 +0,0 @@
-<?php
-require_once('PEAR/PackageFileManager.php');
-require_once 'PEAR/Config.php';
-
-$pkg = new PEAR_PackageFileManager;
-$config = new PEAR_Config;
-
-$packagedir = dirname(__FILE__);
-
-$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;
-
-$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(
- 'simpleoutput' => true,
- 'doctype' => $config->get('data_dir') . '/PEAR/package.dtd',
- 'package' => 'Math_Numerical_RootFinding',
- 'license' => 'BSD License',
- 'baseinstalldir' => '',
- 'version' => '1.0.0',
- 'packagedirectory' => $packagedir,
- 'pathtopackagefile' => $packagedir,
- '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',
- basename(__FILE__)
- )
-);
-
-$e = $pkg->setOptions($options);
-if (PEAR::isError($e)) {
- echo $e->getMessage();
- die;
-}
-
-// hack until they get their shit in line with docroot role
-$pkg->addRole('tpl', 'php');
-$pkg->addRole('png', 'php');
-$pkg->addRole('gif', 'php');
-$pkg->addRole('jpg', 'php');
-$pkg->addRole('css', 'php');
-$pkg->addRole('js', 'php');
-$pkg->addRole('ini', 'php');
-$pkg->addRole('inc', 'php');
-$pkg->addRole('afm', 'php');
-$pkg->addRole('pkg', 'doc');
-$pkg->addRole('cls', 'doc');
-$pkg->addRole('proc', 'doc');
-$pkg->addRole('txt', 'doc');
-$pkg->addRole('sh', 'script');
-
-$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)) {
- echo $e->getMessage();
-}
-?>
View
219 package2.xml
@@ -1,219 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<package packagerversion="1.4.6" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0
-http://pear.php.net/dtd/tasks-1.0.xsd
-http://pear.php.net/dtd/package-2.0
-http://pear.php.net/dtd/package-2.0.xsd">
- <name>Math_Numerical_RootFinding</name>
- <channel>pear.php.net</channel>
- <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>
- <lead>
- <name>Firman Wandayandi</name>
- <user>firman</user>
- <email>firman@php.net</email>
- <active>yes</active>
- </lead>
- <lead>
- <name>Matthew Fonda</name>
- <user>mfonda</user>
- <email>mfonda@php.net</email>
- <active>yes</active>
- </lead>
- <date>2006-02-01</date>
- <time>01:44:43</time>
- <version>
- <release>1.0.0</release>
- <api>1.0.0</api>
- </version>
- <stability>
- <release>stable</release>
- <api>stable</api>
- </stability>
- <license>BSD License</license>
- <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>
- <contents>
- <dir name="/">
- <dir name="docs">
- <dir name="examples">
- <file baseinstalldir="" name="Bisection.php" role="doc">
- <tasks:replace from="@package_version@" to="version" type="package-info" />
- </file>
- <file baseinstalldir="" name="FalsePosition.php" role="doc">
- <tasks:replace from="@package_version@" to="version" type="package-info" />
- </file>
- <file baseinstalldir="" name="FixedPoint.php" role="doc">
- <tasks:replace from="@package_version@" to="version" type="package-info" />
- </file>
- <file baseinstalldir="" name="Newton-Raphson.php" role="doc">
- <tasks:replace from="@package_version@" to="version" type="package-info" />
- </file>
- <file baseinstalldir="" name="Newton-Raphson2.php" role="doc">
- <tasks:replace from="@package_version@" to="version" type="package-info" />
- </file>
- <file baseinstalldir="" name="Ralston-Rabinowitz.php" role="doc">
- <tasks:replace from="@package_version@" to="version" type="package-info" />
- </file>
- <file baseinstalldir="" name="Secant.php" role="doc">
- <tasks:replace from="@package_version@" to="version" type="package-info" />
- </file>
- </dir> <!-- /docs/examples -->
- <file baseinstalldir="" name="README.txt" role="doc">
- <tasks:replace from="@package_version@" to="version" type="package-info" />
- </file>
- </dir> <!-- /docs -->
- <dir name="Math">
- <dir name="Numerical">
- <dir name="RootFinding">
- <file baseinstalldir="" name="Bisection.php" role="php">
- <tasks:replace from="@package_version@" to="version" type="package-info" />
- </file>
- <file baseinstalldir="" name="Common.php" role="php">
- <tasks:replace from="@package_version@" to="version" type="package-info" />
- </file>
- <file baseinstalldir="" name="FalsePosition.php" role="php">
- <tasks:replace from="@package_version@" to="version" type="package-info" />
- </file>
- <file baseinstalldir="" name="FixedPoint.php" role="php">
- <tasks:replace from="@package_version@" to="version" type="package-info" />
- </file>
- <file baseinstalldir="" name="NewtonRaphson.php" role="php">
- <tasks:replace from="@package_version@" to="version" type="package-info" />
- </file>
- <file baseinstalldir="" name="NewtonRaphson2.php" role="php">
- <tasks:replace from="@package_version@" to="version" type="package-info" />
- </file>
- <file baseinstalldir="" name="RalstonRabinowitz.php" role="php">
- <tasks:replace from="@package_version@" to="version" type="package-info" />
- </file>
- <file baseinstalldir="" name="Secant.php" role="php">
- <tasks:replace from="@package_version@" to="version" type="package-info" />
- </file>
- </dir> <!-- /Math/Numerical/RootFinding -->
- <file baseinstalldir="" name="RootFinding.php" role="php">
- <tasks:replace from="@package_version@" to="version" type="package-info" />
- </file>
- </dir> <!-- /Math/Numerical -->
- </dir> <!-- /Math -->
- </dir> <!-- / -->
- </contents>
- <dependencies>
- <required>
- <php>
- <min>4.2.0</min>
- </php>
- <pearinstaller>
- <min>1.4.0b1</min>
- </pearinstaller>
- </required>
- </dependencies>
- <phprelease />
- <changelog>
- <release>
- <version>
- <release>0.1.0</release>
- <api>0.1.0</api>
- </version>
- <stability>
- <release>alpha</release>
- <api>alpha</api>
- </stability>
- <date>2004-03-24</date>
- <license uri="http://www.php.net/license">PHP License</license>
- <notes>Initial release of Math_Numerical_RootFinding
-
- </notes>
- </release>
- <release>
- <version>
- <release>0.2.0</release>
- <api>0.2.0</api>
- </version>
- <stability>
- <release>alpha</release>
- <api>alpha</api>
- </stability>
- <date>2004-07-10</date>
- <license uri="http://www.php.net/license">PHP License</license>
- <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>
- <release>0.3.0</release>
- <api>0.3.0</api>
- </version>
- <stability>
- <release>alpha</release>
- <api>alpha</api>
- </stability>
- <date>2005-01-18</date>
- <license uri="http://www.opensource.org/licenses/bsd-license.php">BSD License</license>
- <notes>- changed license into BSD License
-- 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
- 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>
- <release>1.0.0</release>
- <api>1.0.0</api>
- </version>
- <stability>
- <release>stable</release>
- <api>stable</api>
- </stability>
- <date>2006-02-01</date>
- <license uri="http://www.opensource.org/licenses/bsd-license.php">BSD License</license>
- <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>
Please sign in to comment.
Something went wrong with that request. Please try again.