cvs: pear /XML_Util package.php
| From: | Stephan Schmidt | Date: | Sun, 23 May 2004 17:33:16 +0000 |
| Subject: | cvs: pear /XML_Util package.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-19776@lists.php.net to get a copy of this message | ||
schst Sun May 23 13:33:16 2004 EDT
Added files:
/pear/XML_Util package.php
Log:
added script to generate package file
http://cvs.php.net/co.php/pear/XML_Util/package.php?r=1.1&p=1
Index: pear/XML_Util/package.php
+++ pear/XML_Util/package.php
<?php
/**
* script to automate the generation of the
* package.xml file.
*
* $Id: package.php,v 1.1 2004/05/23 17:33:15 schst Exp $
*
* @author Stephan Schmidt <schst@php-tools.net>
* @package XML_Parser
* @subpackage Tools
*/
/**
* uses PackageFileManager
*/
require_once 'PEAR/PackageFileManager.php';
/**
* current version
*/
$version = '0.6.0beta1';
/**
* current state
*/
$state = 'beta';
/**
* release notes
*/
$notes = <<<EOT
- Fixed bug 1438 (namespaces not accepted for isValidName())
- added optional parameter to replaceEntities() to define the set of entities to replace
- added optional parameter to attributesToString() to define, whether entities should be replaced
EOT;
/**
* package description
*/
$description = <<<EOT
Selection of methods that are often needed when working with XML documents. Functionality includes
creating of attribute lists from arrays, creation of tags, validation of XML names and more.
EOT;
$package = new PEAR_PackageFileManager();
$result = $package->setOptions(array(
'package' => 'XML_Util',
'summary' => 'XML utility class.',
'description' => $description,
'version' => $version,
'state' => $state,
'license' => 'PHP License',
'filelistgenerator' => 'cvs',
'ignore' => array('package.php', 'package.xml'),
'notes' => $notes,
'simpleoutput' => true,
'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('PEAR', '', 'has', 'pkg', false);
$package->addDependency('php', '4.2.0', 'ge', 'php',
false);
$package->addDependency('pcre', '', 'has', 'ext', 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();
}
?>