Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 113 lines (99 sloc) 4.433 kB
581459c added script to create package file
Stephan Schmidt authored
1 <?php
2
1bd2f33 @ifeghali adding missing headers to php files
ifeghali authored
3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4
5 /**
6 * PEAR package generator for XML_DTD
7 *
8 * PHP versions 4 and 5
9 *
10 * LICENSE:
11 *
12 * Copyright (c) 2003-2012 The PHP Group
13 * All rights reserved.
14 *
15 * Redistribution and use in source and binary forms, with or without
16 * modification, are permitted provided that the following conditions
17 * are met:
18 *
19 * * Redistributions of source code must retain the above copyright
20 * notice, this list of conditions and the following disclaimer.
21 * * Redistributions in binary form must reproduce the above copyright
22 * notice, this list of conditions and the following disclaimer in the
23 * documentation and/or other materials provided with the distribution.
24 * * The name of the author may not be used to endorse or promote products
25 * derived from this software without specific prior written permission.
26 *
27 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
28 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
29 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
30 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
31 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
32 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
33 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
34 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
35 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
36 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
37 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 *
39 * @category XML
40 * @package XML_DTD
41 * @author Stephan Schmidt <schst@php.net>
42 * @author Igor Feghali <ifeghali@php.net>
43 * @copyright 2003-2012 The PHP Group
44 * @license http://opensource.org/licenses/bsd-license New BSD License
45 * @version CVS: $Id$
46 * @link http://pear.php.net/package/XML_DTD
47 */
48
581459c added script to create package file
Stephan Schmidt authored
49 require_once 'PEAR/PackageFileManager.php';
50
3ed14d2 @ifeghali - Release 0.5.2
ifeghali authored
51 $version = '0.5.2';
581459c added script to create package file
Stephan Schmidt authored
52 $state = 'alpha';
53 $notes = <<<EOT
3ed14d2 @ifeghali - Release 0.5.2
ifeghali authored
54 - Fixed circular reference which was leaking memory
55 - Due to PHP 4 and 5 differences in object handling, the XML Parser had to be rewritten to be PHP 4 compatible again.
56 - Error when parsing empty XML
581459c added script to create package file
Stephan Schmidt authored
57 EOT;
58
59 $description = <<<EOT
60 Parsing of DTD files and DTD validation of XML files.
61 The XML validation is done with the php sax parser, the xml extension, it does not use the domxml extension.
62
63 Currently supports most of the current XML spec, including entities, elements and attributes. Some uncommon parts of the spec may still be unsupported.
64 EOT;
65
66 $package = new PEAR_PackageFileManager();
67 $result = $package->setOptions(array(
68 'package' => 'XML_DTD',
69 'summary' => 'Parsing of DTD files and DTD validation of XML files',
70 'description' => $description,
71 'version' => $version,
72 'state' => $state,
52e13e6 prepare for 0.5.0 release
Chuck Burgess authored
73 'license' => 'BSD License',
581459c added script to create package file
Stephan Schmidt authored
74 'filelistgenerator' => 'cvs',
52e13e6 prepare for 0.5.0 release
Chuck Burgess authored
75 'ignore' => array('package.php', 'package2.php', 'package.xml', 'package2.xml'),
581459c added script to create package file
Stephan Schmidt authored
76 'notes' => $notes,
77 'simpleoutput' => true,
4a0cca3 @ifeghali - Preparing Release
ifeghali authored
78 'cleardependencies' => true,
581459c added script to create package file
Stephan Schmidt authored
79 'baseinstalldir' => 'XML',
80 'packagedirectory' => './',
81 'dir_roles' => array('docs' => 'doc',
82 'examples' => 'doc',
83 'tests' => 'test',
84 )
85 ));
86
87 if (PEAR::isError($result)) {
88 echo $result->getMessage();
89 die();
90 }
91
01a76c5 adjusted for new release
Stephan Schmidt authored
92 $package->addRole('txt', 'doc');
93
52e13e6 prepare for 0.5.0 release
Chuck Burgess authored
94 //$package->addMaintainer('cox', 'lead', 'Tomas V.V.Cox', 'cox@php.net');
95 //$package->addMaintainer('schst', 'lead', 'Stephan Schmidt', 'schst@php-tools.net');
1933792 @ifeghali - Dropped dependency of deprecated XML_Tree
ifeghali authored
96 //$package->addMaintainer('ashnazg', 'lead', 'Chuck Burgess', 'ashnazg@php.net');
97 $package->addMaintainer('ifeghali', 'lead', 'Igor Feghali', 'ifeghali@php.net');
581459c added script to create package file
Stephan Schmidt authored
98
4a0cca3 @ifeghali - Preparing Release
ifeghali authored
99 $package->addDependency('php', '4.3.0', 'ge', 'php', false);
100 $package->addDependency('PEAR', '1.5.4', 'ge', 'pkg', false);
1933792 @ifeghali - Dropped dependency of deprecated XML_Tree
ifeghali authored
101 $package->addDependency('XML_Parser', '1.3.1', 'ge', 'pkg', false);
581459c added script to create package file
Stephan Schmidt authored
102
103 if (isset($_GET['make']) || (isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == 'make')) {
104 $result = $package->writePackageFile();
105 } else {
106 $result = $package->debugPackageFile();
107 }
108
109 if (PEAR::isError($result)) {
110 echo $result->getMessage();
111 die();
112 }
Something went wrong with that request. Please try again.