PhpDocumentor
[ class tree: PhpDocumentor ] [ index: PhpDocumentor ] [ all elements ]

Source for file create_package.xml.php

Documentation is available at create_package.xml.php

  1. <?php
  2. require_once('PEAR/PackageFileManager.php');
  3. require_once('PEAR/PackageFileManager2.php');
  4. PEAR::setErrorHandling(PEAR_ERROR_DIE);
  5.  
  6. $packagedir dirname(dirname(__FILE__));
  7. $notes '
  8.  - fixed these bugs reported in Sourceforge:
  9.  [ 1667333 ] Mishandled Param = 0 Default in Converters
  10.  [ 1656902 ] Error when converting class that extends Exception
  11.  [ 1640392 ] docBuilder user directory
  12.  [ 1634369 ] @global syntax in @name example
  13.  [ 1633275 ] Update TODO Links to SF/PEAR Buglists
  14.  [ 1631553 ] Docs Say TODO on INCLUDE Is OK
  15.  [ 1620470 ] Ensure No Pathing Given in Output Converter Name
  16.  [ 1620396 ] INSTALL is wrong and outdated
  17.  [ 1614286 ] Fix Indexing of Constants
  18.  [ 1611861 ] Fix --hidden flag handling
  19.  [ 1611847 ] Fix PEAR Bug #9366
  20.  [ 1602961 ] "--hidden off" / "-dh off" results in hidden=true
  21.  [ 1590240 ] Double Tab-Count after Shell # Comment in SourceCode
  22.  [ 1589650 ] Segfault with PHP 5.2
  23.  [ 1588175 ] const elements sorting incorrectly
  24.  [ 1586917 ] Object of class parserLinkInlineTag could not be converted
  25.  [ 1585879 ] Fix the error text for Includes without docblock
  26.  [ 1585875 ] Error text for Includes without docblock is incorrect
  27.  [ 1583877 ] tagsort corrections in ParserDocBlock.inc
  28.  [ 1583850 ] "Created by PhpDoc", not "Somesite"
  29.  [ 1573816 ] CHM default template does not set help file title
  30.  [ 1570942 ] Grammar/Typo Corrections in Tutorial
  31.  [ 1548910 ] Do not copy \\\".svn\\\" and \\\"CVS\\\" dirs from media fol
  32.  [ 1545418 ] Duplicated title in generated tutorials (docbook)
  33.  [ 1544661 ] bteer line number alignment in smarty::php html template
  34.  [ 1543686 ] Doesn\'t treat interface level docblock like class level docb
  35.  [ 1525150 ] tag information displayed in random order
  36.  [ 1518565 ] "-q off" different then not passing it
  37.  [ 1348589 ] @copyright bug?
  38.  
  39.  - fixed these bugs reported in PEAR:
  40.   Bug # 9151:  ReflectionException when documenting classes derived from PHP internal classes
  41.   Bug # 9366:  Last line with comment in &lt;code&gt; disappears
  42.   Bug # 9673:  potential major security issue
  43.   Bug # 9915:  PHP Notice in PDF Converter
  44.   Bug # 9937:  Security Exploit CVE-2005-4593
  45.   Bug #10266:  List in @todo tags not processed correctly
  46.   Bug #10289:  Hangs at "Converting tutorials"
  47.  
  48. ';
  49. $version '1.3.2';
  50. $options = array(
  51. 'baseinstalldir' => 'PhpDocumentor',
  52. 'version' => $version,
  53. 'packagedirectory' => $packagedir,
  54. 'filelistgenerator' => 'cvs',
  55. 'notes' => $notes,
  56. 'package' => 'PhpDocumentor',
  57. 'dir_roles' => array(
  58.     'Documentation' => 'doc',
  59.     'Documentation/tests' => 'test',
  60.     'docbuilder' => 'data',
  61.     'HTML_TreeMenu-1.1.2' => 'data',
  62.     'tutorials' => 'doc',
  63.     ),
  64. 'simpleoutput' => true,
  65. 'exceptions' =>
  66.     array(
  67.         'index.html' => 'data',
  68.         'README' => 'doc',
  69.         'ChangeLog' => 'doc',
  70.         'LICENSE' => 'doc',
  71.         'poweredbyphpdoc.gif' => 'data',
  72.         'INSTALL' => 'doc',
  73.         'FAQ' => 'doc',
  74.         'Authors' => 'doc',
  75.         'Release-1.2.0beta1' => 'doc',
  76.         'Release-1.2.0beta2' => 'doc',
  77.         'Release-1.2.0beta3' => 'doc',
  78.         'Release-1.2.0rc1' => 'doc',
  79.         'Release-1.2.0rc2' => 'doc',
  80.         'Release-1.2.0' => 'doc',
  81.         'Release-1.2.1' => 'doc',
  82.         'Release-1.2.2' => 'doc',
  83.         'Release-1.2.3' => 'doc',
  84.         'Release-1.2.3.1' => 'doc',
  85.         'Release-1.3.0' => 'doc',
  86.         'Release-1.3.1' => 'doc',
  87.         'Release-1.3.2' => 'doc',
  88.         'pear-phpdoc' => 'script',
  89.         'pear-phpdoc.bat' => 'script',
  90.         'HTML_TreeMenu-1.1.2/TreeMenu.php' => 'php',
  91.         'phpDocumentor/Smarty-2.6.0/libs/debug.tpl' => 'php',
  92.         'new_phpdoc.php' => 'data',
  93.         'phpdoc.php' => 'data',
  94.         ),
  95. 'ignore' =>
  96.     array('package.xml',
  97.           'package2.xml',
  98.           '*templates/PEAR/*',
  99.           'publicweb-PEAR-1.2.1.patch.txt',
  100.           ),
  101. 'installexceptions' => array('pear-phpdoc' => '/''pear-phpdoc.bat' => '/''scripts/makedoc.sh' => '/'),
  102. );
  103. $pfm2 = PEAR_PackageFileManager2::importOptions(dirname(dirname(__FILE__))
  104.     . DIRECTORY_SEPARATOR . 'package.xml'array_merge($optionsarray('packagefile' => 'package.xml')));
  105. $pfm2->setReleaseVersion($version);
  106. $pfm2->setReleaseStability('stable');
  107. $pfm2->setLicense('LGPL''http://www.opensource.org/licenses/lgpl-license.php');
  108. $pfm2->setNotes($notes);
  109. $pfm2->clearDeps();
  110. $pfm2->setPhpDep('4.2.0');
  111. $pfm2->setPearinstallerDep('1.4.6');
  112. $pfm2->addPackageDepWithChannel('optional''XML_Beautifier''pear.php.net''1.1');
  113. $pfm2->addReplacement('pear-phpdoc''pear-config''@PHP-BIN@''php_bin');
  114. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@PHP-BIN@''php_bin');
  115. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@BIN-DIR@''bin_dir');
  116. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@PEAR-DIR@''php_dir');
  117. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@DATA-DIR@''data_dir');
  118. $pfm2->addReplacement('docbuilder/includes/utilities.php''pear-config''@DATA-DIR@''data_dir');
  119. $pfm2->addReplacement('docbuilder/builder.php''pear-config''@DATA-DIR@''data_dir');
  120. $pfm2->addReplacement('docbuilder/file_dialog.php''pear-config''@DATA-DIR@''data_dir');
  121. $pfm2->addReplacement('docbuilder/file_dialog.php''pear-config''@WEB-DIR@''data_dir');
  122. $pfm2->addReplacement('docbuilder/actions.php''pear-config''@WEB-DIR@''data_dir');
  123. $pfm2->addReplacement('docbuilder/top.php''pear-config''@DATA-DIR@''data_dir');
  124. $pfm2->addReplacement('docbuilder/config.php''pear-config''@DATA-DIR@''data_dir');
  125. $pfm2->addReplacement('docbuilder/config.php''pear-config''@WEB-DIR@''data_dir');
  126. $pfm2->addReplacement('phpDocumentor/Setup.inc.php''pear-config''@DATA-DIR@''data_dir');
  127. $pfm2->addReplacement('phpDocumentor/Converter.inc''pear-config''@DATA-DIR@''data_dir');
  128. $pfm2->addReplacement('phpDocumentor/common.inc.php''package-info''@VER@''version');
  129. $pfm2->addReplacement('phpDocumentor/common.inc.php''pear-config''@PEAR-DIR@''php_dir');
  130. $pfm2->addReplacement('phpDocumentor/IntermediateParser.inc''package-info''@VER@''version');
  131. $pfm2->addReplacement('phpDocumentor/IntermediateParser.inc''pear-config''@PEAR-DIR@''php_dir');
  132. $pfm2->addReplacement('user/pear-makedocs.ini''pear-config''@PEAR-DIR@''php_dir');
  133. $pfm2->addReplacement('user/pear-makedocs.ini''pear-config''@DOC-DIR@''doc_dir');
  134. $pfm2->addReplacement('user/pear-makedocs.ini''package-info''@VER@''version');
  135. $pfm2->addRole('inc''php');
  136. $pfm2->addRole('sh''script');
  137. $pfm2->addUnixEol('pear-phpdoc');
  138. $pfm2->addUnixEol('phpdoc');
  139. $pfm2->addWindowsEol('pear-phpdoc.bat');
  140. $pfm2->addWindowsEol('phpdoc.bat');
  141. $pfm2->generateContents();
  142. $pfm2->setPackageType('php');
  143. $pfm2->addRelease();
  144. $pfm2->setOsInstallCondition('windows');
  145. // these next two files are only used if the archive is extracted as-is
  146. // without installing via "pear install blah"
  147. $pfm2->addIgnoreToRelease("phpdoc");
  148. $pfm2->addIgnoreToRelease('phpdoc.bat');
  149. $pfm2->addIgnoreToRelease('user/makedocs.ini');
  150. $pfm2->addIgnoreToRelease('scripts/makedoc.sh');
  151. $pfm2->addInstallAs('pear-phpdoc''phpdoc');
  152. $pfm2->addInstallAs('pear-phpdoc.bat''phpdoc.bat');
  153. $pfm2->addInstallAs('user/pear-makedocs.ini''user/makedocs.ini');
  154. $pfm2->addRelease();
  155. // these next two files are only used if the archive is extracted as-is
  156. // without installing via "pear install blah"
  157. $pfm2->addIgnoreToRelease("phpdoc");
  158. $pfm2->addIgnoreToRelease('phpdoc.bat');
  159. $pfm2->addIgnoreToRelease('user/makedocs.ini');
  160. $pfm2->addIgnoreToRelease('pear-phpdoc.bat');
  161. $pfm2->addInstallAs('pear-phpdoc''phpdoc');
  162. $pfm2->addInstallAs('user/pear-makedocs.ini''user/makedocs.ini');
  163. if (isset($_GET['make']|| (isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  164.     $pfm2->writePackageFile();
  165. else {
  166.     $pfm2->debugPackageFile();
  167. }
  168. if (!isset($_GET['make']&& !(isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  169.     echo '<a href="' $_SERVER['PHP_SELF''?make=1">Make this file</a>';
  170. }
  171. ?>

Documentation generated on Mon, 11 Mar 2019 14:58:40 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.