Source for file create_package.xml.php
Documentation is available at create_package.xml.php
require_once('PEAR/PackageFileManager.php');
require_once('PEAR/PackageFileManager2.php');
PEAR ::setErrorHandling (PEAR_ERROR_DIE );
- fixed these bugs reported in Sourceforge:
[ 1667333 ] Mishandled Param = 0 Default in Converters
[ 1656902 ] Error when converting class that extends Exception
[ 1640392 ] docBuilder user directory
[ 1634369 ] @global syntax in @name example
[ 1633275 ] Update TODO Links to SF/PEAR Buglists
[ 1631553 ] Docs Say TODO on INCLUDE Is OK
[ 1620470 ] Ensure No Pathing Given in Output Converter Name
[ 1620396 ] INSTALL is wrong and outdated
[ 1614286 ] Fix Indexing of Constants
[ 1611861 ] Fix --hidden flag handling
[ 1611847 ] Fix PEAR Bug #9366
[ 1602961 ] "--hidden off" / "-dh off" results in hidden=true
[ 1590240 ] Double Tab-Count after Shell # Comment in SourceCode
[ 1589650 ] Segfault with PHP 5.2
[ 1588175 ] const elements sorting incorrectly
[ 1586917 ] Object of class parserLinkInlineTag could not be converted
[ 1585879 ] Fix the error text for Includes without docblock
[ 1585875 ] Error text for Includes without docblock is incorrect
[ 1583877 ] tagsort corrections in ParserDocBlock.inc
[ 1583850 ] "Created by PhpDoc", not "Somesite"
[ 1573816 ] CHM default template does not set help file title
[ 1570942 ] Grammar/Typo Corrections in Tutorial
[ 1548910 ] Do not copy \\\".svn\\\" and \\\"CVS\\\" dirs from media fol
[ 1545418 ] Duplicated title in generated tutorials (docbook)
[ 1544661 ] bteer line number alignment in smarty::php html template
[ 1543686 ] Doesn\'t treat interface level docblock like class level docb
[ 1525150 ] tag information displayed in random order
[ 1518565 ] "-q off" different then not passing it
[ 1348589 ] @copyright bug?
- fixed these bugs reported in PEAR:
Bug # 9151: ReflectionException when documenting classes derived from PHP internal classes
Bug # 9366: Last line with comment in <code> disappears
Bug # 9673: potential major security issue
Bug # 9915: PHP Notice in PDF Converter
Bug # 9937: Security Exploit CVE-2005-4593
Bug #10266: List in @todo tags not processed correctly
Bug #10289: Hangs at "Converting tutorials"
'baseinstalldir' => 'PhpDocumentor',
'packagedirectory' => $packagedir,
'filelistgenerator' => 'cvs',
'package' => 'PhpDocumentor',
'Documentation' => 'doc',
'Documentation/tests' => 'test',
'HTML_TreeMenu-1.1.2' => 'data',
'poweredbyphpdoc.gif' => 'data',
'Release-1.2.0beta1' => 'doc',
'Release-1.2.0beta2' => 'doc',
'Release-1.2.0beta3' => 'doc',
'Release-1.2.0rc1' => 'doc',
'Release-1.2.0rc2' => 'doc',
'Release-1.2.0' => 'doc',
'Release-1.2.1' => 'doc',
'Release-1.2.2' => 'doc',
'Release-1.2.3' => 'doc',
'Release-1.2.3.1' => 'doc',
'Release-1.3.0' => 'doc',
'Release-1.3.1' => 'doc',
'Release-1.3.2' => 'doc',
'pear-phpdoc' => 'script',
'pear-phpdoc.bat' => 'script',
'HTML_TreeMenu-1.1.2/TreeMenu.php' => 'php',
'phpDocumentor/Smarty-2.6.0/libs/debug.tpl' => 'php',
'new_phpdoc.php' => 'data',
'publicweb-PEAR-1.2.1.patch.txt',
'installexceptions' => array ('pear-phpdoc' => '/', 'pear-phpdoc.bat' => '/', 'scripts/makedoc.sh' => '/'),
$pfm2 = PEAR_PackageFileManager2 ::importOptions (dirname(dirname(__FILE__ ))
. DIRECTORY_SEPARATOR . 'package.xml', array_merge($options, array ('packagefile' => 'package.xml')));
$pfm2->setReleaseVersion ($version);
$pfm2->setReleaseStability ('stable');
$pfm2->setLicense ('LGPL', 'http://www.opensource.org/licenses/lgpl-license.php');
$pfm2->setPhpDep ('4.2.0');
$pfm2->setPearinstallerDep ('1.4.6');
$pfm2->addPackageDepWithChannel ('optional', 'XML_Beautifier', 'pear.php.net', '1.1');
$pfm2->addReplacement ('pear-phpdoc', 'pear-config', '@PHP-BIN@', 'php_bin');
$pfm2->addReplacement ('pear-phpdoc.bat', 'pear-config', '@PHP-BIN@', 'php_bin');
$pfm2->addReplacement ('pear-phpdoc.bat', 'pear-config', '@BIN-DIR@', 'bin_dir');
$pfm2->addReplacement ('pear-phpdoc.bat', 'pear-config', '@PEAR-DIR@', 'php_dir');
$pfm2->addReplacement ('pear-phpdoc.bat', 'pear-config', '@DATA-DIR@', 'data_dir');
$pfm2->addReplacement ('docbuilder/includes/utilities.php', 'pear-config', '@DATA-DIR@', 'data_dir');
$pfm2->addReplacement ('docbuilder/builder.php', 'pear-config', '@DATA-DIR@', 'data_dir');
$pfm2->addReplacement ('docbuilder/file_dialog.php', 'pear-config', '@DATA-DIR@', 'data_dir');
$pfm2->addReplacement ('docbuilder/file_dialog.php', 'pear-config', '@WEB-DIR@', 'data_dir');
$pfm2->addReplacement ('docbuilder/actions.php', 'pear-config', '@WEB-DIR@', 'data_dir');
$pfm2->addReplacement ('docbuilder/top.php', 'pear-config', '@DATA-DIR@', 'data_dir');
$pfm2->addReplacement ('docbuilder/config.php', 'pear-config', '@DATA-DIR@', 'data_dir');
$pfm2->addReplacement ('docbuilder/config.php', 'pear-config', '@WEB-DIR@', 'data_dir');
$pfm2->addReplacement ('phpDocumentor/Setup.inc.php', 'pear-config', '@DATA-DIR@', 'data_dir');
$pfm2->addReplacement ('phpDocumentor/Converter.inc', 'pear-config', '@DATA-DIR@', 'data_dir');
$pfm2->addReplacement ('phpDocumentor/common.inc.php', 'package-info', '@VER@', 'version');
$pfm2->addReplacement ('phpDocumentor/common.inc.php', 'pear-config', '@PEAR-DIR@', 'php_dir');
$pfm2->addReplacement ('phpDocumentor/IntermediateParser.inc', 'package-info', '@VER@', 'version');
$pfm2->addReplacement ('phpDocumentor/IntermediateParser.inc', 'pear-config', '@PEAR-DIR@', 'php_dir');
$pfm2->addReplacement ('user/pear-makedocs.ini', 'pear-config', '@PEAR-DIR@', 'php_dir');
$pfm2->addReplacement ('user/pear-makedocs.ini', 'pear-config', '@DOC-DIR@', 'doc_dir');
$pfm2->addReplacement ('user/pear-makedocs.ini', 'package-info', '@VER@', 'version');
$pfm2->addRole ('inc', 'php');
$pfm2->addRole ('sh', 'script');
$pfm2->addUnixEol ('pear-phpdoc');
$pfm2->addUnixEol ('phpdoc');
$pfm2->addWindowsEol ('pear-phpdoc.bat');
$pfm2->addWindowsEol ('phpdoc.bat');
$pfm2->generateContents ();
$pfm2->setPackageType ('php');
$pfm2->setOsInstallCondition ('windows');
// these next two files are only used if the archive is extracted as-is
// without installing via "pear install blah"
$pfm2->addIgnoreToRelease ("phpdoc");
$pfm2->addIgnoreToRelease ('phpdoc.bat');
$pfm2->addIgnoreToRelease ('user/makedocs.ini');
$pfm2->addIgnoreToRelease ('scripts/makedoc.sh');
$pfm2->addInstallAs ('pear-phpdoc', 'phpdoc');
$pfm2->addInstallAs ('pear-phpdoc.bat', 'phpdoc.bat');
$pfm2->addInstallAs ('user/pear-makedocs.ini', 'user/makedocs.ini');
// these next two files are only used if the archive is extracted as-is
// without installing via "pear install blah"
$pfm2->addIgnoreToRelease ("phpdoc");
$pfm2->addIgnoreToRelease ('phpdoc.bat');
$pfm2->addIgnoreToRelease ('user/makedocs.ini');
$pfm2->addIgnoreToRelease ('pear-phpdoc.bat');
$pfm2->addInstallAs ('pear-phpdoc', 'phpdoc');
$pfm2->addInstallAs ('user/pear-makedocs.ini', 'user/makedocs.ini');
if (isset ($_GET['make']) || (isset ($_SERVER['argv'][1 ]) && $_SERVER['argv'][1 ] == 'make')) {
$pfm2->writePackageFile ();
$pfm2->debugPackageFile ();
if (!isset ($_GET['make']) && !(isset ($_SERVER['argv'][1 ]) && $_SERVER['argv'][1 ] == 'make')) {
echo '<a href="' . $_SERVER['PHP_SELF'] . '?make=1">Make this file</a>';
Documentation generated on Mon, 11 Mar 2019 14:58:40 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|