Skip to content

Commit

Permalink
updated package file
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/XML_Beautifier/trunk@156386 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Stephan Schmidt committed Apr 17, 2004
1 parent 1f730b3 commit 91eefa2
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 15 deletions.
70 changes: 70 additions & 0 deletions package.php
@@ -0,0 +1,70 @@
<?php
/**
* script to automate the generation of the
* package.xml file.
*
* @author Stephan Schmidt <schst@php-tools.net>
* @package XML_Beautifier
* @subpackage Tools
*/

/**
* uses PackageFileManager
*/
require_once 'PEAR/PackageFileManager.php';

$version = '1.2.0';

$notes = <<<EOT
Added support for cdata sections (bug #1009)
EOT;

$description = <<<EOT
XML_Beautifier will add indentation and linebreaks to you XML files, replace all
entities, format your comments and makes your document easier to read. You can
influence the way your document is beautified with several options.
EOT;

$package = new PEAR_PackageFileManager();

$result = $package->setOptions(array(
'package' => 'XML_Beautifier',
'summary' => 'Class to format XML documents.',
'description' => $description,
'version' => $version,
'state' => 'stable',
'license' => 'PHP License',
'filelistgenerator' => 'cvs',
'ignore' => array('package.php', 'package.xml'),
'notes' => $notes,
'simpleoutput' => false,
'baseinstalldir' => 'XML',
'packagedirectory' => './',
'dir_roles' => array('docs' => 'doc',
'examples' => 'doc',
'tests' => 'test',
)
));

if (PEAR::isError($result)) {
echo $result->getMessage();
die();
}

$package->addMaintainer('schst', 'lead', 'Stephan Schmidt', 'schst@php-tools.net');

$package->addDependency('XML_Parser', '', 'has', 'pkg', false);
$package->addDependency('XML_Util', '0.5', 'ge', 'pkg', false);
$package->addDependency('php', '4.2.0', 'ge', 'php', false);

if (isset($_GET['make']) || (isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == 'make')) {
$result = $package->writePackageFile();
} else {
$result = $package->debugPackageFile();
}

if (PEAR::isError($result)) {
echo $result->getMessage();
die();
}
?>
46 changes: 31 additions & 15 deletions package.xml
Expand Up @@ -3,33 +3,39 @@
<package version="1.0">
<name>XML_Beautifier</name>
<summary>Class to format XML documents.</summary>
<description>XML_Beautifier will add indentation and linebreaks to you XML files, replace all entities, format your comments and makes your document easier to read. You can influence the way your document is beautified with several options.</description>
<description>XML_Beautifier will add indentation and linebreaks to you XML files, replace all
entities, format your comments and makes your document easier to read. You can
influence the way your document is beautified with several options.</description>
<maintainers>
<maintainer>
<user>schst</user>
<name>Stephan Schmidt</name>
<email>schst@php.net</email>
<email>schst@php-tools.net</email>
<role>lead</role>
</maintainer>
</maintainers>
<release>
<version>1.1</version>
<date>2004-02-01</date>
<version>1.2.0</version>
<date>2004-04-17</date>
<license>PHP License</license>
<state>stable</state>
<notes>fixed bug #629 (treatment of data sections),
added XML_BEAUTIFER_INCLUDE_PATH constant for testing environments,
moved data trim() to renderer</notes>
<notes>Added support for cdata sections (bug #1009)</notes>
<deps>
<dep type="php" rel="ge" version="4.2.0"/>
<dep type="pkg" rel="ge" version="0.5">XML_Util</dep>
<dep type="pkg" rel="has">XML_Parser</dep>
<dep type="php" rel="ge" version="4.2.0" optional="no"/>
<dep type="pkg" rel="ge" version="0.5" optional="no">XML_Util</dep>
<dep type="pkg" rel="has" optional="no">XML_Parser</dep>
</deps>
<provides type="class" name="XML_Beautifier_Renderer" />
<provides type="function" name="XML_Beautifier_Renderer::serialize" />
<provides type="function" name="XML_Beautifier_Renderer::normalize" />
<provides type="class" name="XML_Beautifier_Tokenizer" extends="XML_Parser" />
<provides type="function" name="XML_Beautifier_Tokenizer::tokenize" />
<provides type="function" name="XML_Beautifier_Tokenizer::startHandler" />
<provides type="function" name="XML_Beautifier_Tokenizer::endHandler" />
<provides type="function" name="XML_Beautifier_Tokenizer::cdataHandler" />
<provides type="function" name="XML_Beautifier_Tokenizer::piHandler" />
<provides type="function" name="XML_Beautifier_Tokenizer::entityrefHandler" />
<provides type="function" name="XML_Beautifier_Tokenizer::defaultHandler" />
<provides type="class" name="XML_Beautifier_Renderer_Plain" extends="XML_Beautifier_Renderer" />
<provides type="function" name="XML_Beautifier_Renderer_Plain::serialize" />
<provides type="class" name="XML_Beautifier" />
Expand All @@ -39,16 +45,19 @@ moved data trim() to renderer</notes>
<provides type="function" name="XML_Beautifier::formatFile" />
<provides type="function" name="XML_Beautifier::formatString" />
<filelist>
<file role="php" baseinstalldir="XML" md5sum="0fe8fdb3c92356385355ba71286628b7" name="Beautifier/Renderer.php"/>
<file role="php" baseinstalldir="XML" md5sum="ce7e636f4bacc6763238f4cefc9cf219" name="Beautifier/Tokenizer.php"/>
<file role="php" baseinstalldir="XML" md5sum="b527eb7f57511f27a39cd4e6e3affb90" name="Beautifier/Renderer/Plain.php"/>
<file role="php" baseinstalldir="XML" md5sum="41b0a79d3982916dc8e563107baa125a" name="Beautifier/Renderer.php"/>
<file role="php" baseinstalldir="XML" md5sum="96e1b4ddb2886265dd8c5340659926d2" name="Beautifier/Tokenizer.php"/>
<file role="php" baseinstalldir="XML" md5sum="dd849a9c673a31d4a38bd0dfb2f71d4f" name="Beautifier/Renderer/Plain.php"/>
<file role="doc" baseinstalldir="XML" md5sum="e77c0e6684083bf0ef4e47dba8fdd4da" name="examples/example1.php"/>
<file role="doc" baseinstalldir="XML" md5sum="083dae7bc56551fc681ca897e0d13b3a" name="examples/example2.php"/>
<file role="doc" baseinstalldir="XML" md5sum="30f06327ef7c3656ae55d301fb4abd10" name="examples/example2.php"/>
<file role="doc" baseinstalldir="XML" md5sum="c59676e7726c81466397ad2b1ef71857" name="examples/example3.php"/>
<file role="doc" baseinstalldir="XML" md5sum="38ef360651924bfe2767344309bf47d9" name="examples/example4.php"/>
<file role="doc" baseinstalldir="XML" md5sum="c2ed8597eb9636a59a61332ea4aaa337" name="examples/example5.php"/>
<file role="doc" baseinstalldir="XML" md5sum="5c156a8686a0c1ed9d049791bf0673b8" name="examples/example6.php"/>
<file role="doc" baseinstalldir="XML" md5sum="553ed0097ee4d61490ea0ff4d186dbd6" name="examples/test.xml"/>
<file role="doc" baseinstalldir="XML" md5sum="c16a9f71c3d54d2bbaabe688c3f12d90" name="examples/example7.php"/>
<file role="doc" baseinstalldir="XML" md5sum="41544ae1cce0153d48e11eb82c467610" name="examples/test.xml"/>
<file role="doc" baseinstalldir="XML" md5sum="39c52a488a0b7a2af8cd16e722cbd2e8" name="examples/test2.xml"/>
<file role="doc" baseinstalldir="XML" md5sum="e24b535e11b74572bb8533dd721fe335" name="examples/test3.xml"/>
<file role="php" baseinstalldir="XML" md5sum="4305cbc9b63747bf9717fe5efcb0c2a0" name="Beautifier.php"/>
</filelist>
</release>
Expand Down Expand Up @@ -110,5 +119,12 @@ did some small cleanup</notes>
added XML_BEAUTIFER_INCLUDE_PATH constant for testing environments,
moved data trim() to renderer</notes>
</release>
<release>
<version>1.2.0</version>
<date>2004-04-17</date>
<license>PHP License</license>
<state>stable</state>
<notes>Added support for cdata sections (bug #1009)</notes>
</release>
</changelog>
</package>

0 comments on commit 91eefa2

Please sign in to comment.