Permalink
Browse files

For release 2.0RC1

git-svn-id: http://svn.php.net/repository/pear/packages/XML_Tree/trunk@159637 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
dshafik committed May 25, 2004
1 parent c63d62c commit 138bbf9eb4cc37fdb8a7f8ff5e2bd1941bb75d29
Showing with 133 additions and 27 deletions.
  1. +63 −0 package.php
  2. +70 −27 package.xml
View
@@ -0,0 +1,63 @@
+<?php
+require_once 'PEAR/PackageFileManager.php';
+
+$version = '2.0RC1';
+$notes = <<<EOT
+*** Minor BC Breakages Have Occured ***
+
+* Fixes all known bugs:
+#89, #766, #905, #1125, #1253, #1414, #492, #555, #1238
+
+* Returns PEAR_Error objects if an invalid element/attribute name is given (BC Break)
+
+* \$object->error contains PEAR_Error if an error occurs, should be checked when creating the root element
+
+* Added the ability to encapsulate all CDATA in <![CDATA[]]> Sections (see XML_Tree::useCdataSections()) or a specific
+node's CDATA using the new argument to XML_Tree_Node::XML_Tree_Node() and XML_Tree_Node::addChild())
+EOT;
+
+$description =<<<EOT
+Allows for the building of XML data structures using a tree
+representation, without the need for an extension like DOMXML.
+EOT;
+
+$package = new PEAR_PackageFileManager();
+
+$result = $package->setOptions(array(
+ 'package' => 'XML_Tree',
+ 'summary' => 'Represent XML data in a tree structure',
+ 'description' => $description,
+ 'version' => $version,
+ 'state' => 'beta',
+ 'license' => 'PHP License',
+ 'ignore' => array('package.php', 'package.xml', '*.bak', '*src*', '*.tgz', '*pear_media*', '*tests*'),
+ 'filelistgenerator' => 'cvs', // other option is 'file'
+ 'notes' => $notes,
+ 'changelogoldtonew' => false,
+ 'baseinstalldir' => 'XML',
+ 'packagedirectory' => '',
+ 'simpleoutput' => true
+ ));
+
+if (PEAR::isError($result)) {
+ echo $result->getMessage();
+ die();
+}
+
+$package->addMaintainer('davey','lead','Davey Shafik','davey@php.net');
+
+$package->addDependency('auto');
+$package->addDependency('XML_Parser', '1.1.0', 'gt', 'pkg', false);
+
+
+if (isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == 'commit') {
+ $result = $package->writePackageFile();
+} else {
+ $result = $package->debugPackageFile();
+}
+
+if (PEAR::isError($result)) {
+ echo $result->getMessage();
+ die();
+}
+?>
View
@@ -1,13 +1,10 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
-<!-- do not use the "Type" attribute here, that one is only for
- generated package.xml files -->
+<!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0">
<package version="1.0">
<name>XML_Tree</name>
<summary>Represent XML data in a tree structure</summary>
- <description>
- Allows for the building of XML data structures using a tree
- representation, without the need for an extension like DOMXML.
- </description>
+ <description>Allows for the building of XML data structures using a tree
+representation, without the need for an extension like DOMXML.</description>
<maintainers>
<maintainer>
<user>bernd</user>
@@ -21,31 +18,77 @@
<email>cox@idecnet.com</email>
<role>lead</role>
</maintainer>
+ <maintainer>
+ <user>davey</user>
+ <name>Davey Shafik</name>
+ <email>davey@php.net</email>
+ <role>lead</role>
+ </maintainer>
</maintainers>
<release>
- <version>2.0b2</version>
- <date>2003-09-18</date>
- <license>PHP</license>
+ <version>2.0RC1</version>
+ <date>2004-05-25</date>
+ <license>PHP License</license>
<state>beta</state>
- <notes>
-- Repaired 2 old method calls for add_root() and set_contents()
-- Added getElementsByTagName() (by Pierre)
-- Added a README.txt
- </notes>
- <filelist>
- <dir name="/" baseinstalldir="XML">
- <file role="php" name="Tree.php"/>
- <file role="doc" name="README.txt"/>
- <dir name="Tree">
- <file role="php" name="Node.php"/>
- </dir>
- <dir name="tests">
- <file role="test" name="test.php"/>
- </dir>
- </dir>
- </filelist>
+ <notes>*** Minor BC Breakages Have Occured ***
+
+* Fixes all known bugs:
+#89, #766, #905, #1125, #1253, #1414, #492, #555, #1238
+
+* Returns PEAR_Error objects if an invalid element/attribute name is given (BC Break)
+
+* $object-&gt;error contains PEAR_Error if an error occurs, should be checked when creating the root element
+
+* Added the ability to encapsulate all CDATA in &lt;![CDATA[]]&gt; Sections (see XML_Tree::useCdataSections()) or a specific
+node's CDATA using the new argument to XML_Tree_Node::XML_Tree_Node() and XML_Tree_Node::addChild())</notes>
<deps>
- <dep type="pkg" rel="has">XML_Parser</dep>
+ <dep type="pkg" rel="gt" version="1.1.0" optional="no">XML_Parser</dep>
+ <dep type="php" rel="ge" version="4.0.4" optional="no"/>
+ <dep type="ext" rel="has" optional="no">pcre</dep>
+ <dep type="ext" rel="has" optional="no">xml</dep>
</deps>
+ <filelist>
+ <dir baseinstalldir="XML" name="/">
+ <dir name="docs">
+ <dir name="examples">
+ <file role="doc" name="cdata_sections_1.php"/>
+ <file role="doc" name="error_handling_1.php"/>
+ </dir> <!-- docs/examples -->
+ </dir> <!-- docs -->
+ <dir name="Tree">
+ <file role="php" name="Node.php"/>
+ </dir> <!-- Tree -->
+ <file role="data" name="README.txt"/>
+ <file role="php" name="Tree.php"/>
+ </dir> <!-- / -->
+ </filelist>
</release>
+ <changelog>
+ <release>
+ <version>2.0RC1</version>
+ <date>2004-05-25</date>
+ <license>PHP License</license>
+ <state>beta</state>
+ <notes>*** Minor BC Breakages Have Occured ***
+
+* Fixes all known bugs:
+#89, #766, #905, #1125, #1253, #1414, #492, #555, #1238
+
+* Returns PEAR_Error objects if an invalid element/attribute name is given (BC Break)
+
+* $object-&gt;error contains PEAR_Error if an error occurs, should be checked when creating the root element
+
+* Added the ability to encapsulate all CDATA in &lt;![CDATA[]]&gt; Sections (see XML_Tree::useCdataSections()) or a specific
+node's CDATA using the new argument to XML_Tree_Node::XML_Tree_Node() and XML_Tree_Node::addChild())</notes>
+ </release>
+ <release>
+ <version>2.0b2</version>
+ <date>2003-09-18</date>
+ <license>PHP</license>
+ <state>beta</state>
+ <notes>- Repaired 2 old method calls for add_root() and set_contents()
+- Added getElementsByTagName() (by Pierre)
+- Added a README.txt</notes>
+ </release>
+ </changelog>
</package>

0 comments on commit 138bbf9

Please sign in to comment.