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. Includes these PEAR items:
  9. Req #10670: Don&apos;t Die on Empty Tag Descriptions
  10. Bug #10864: PhpDocumentor dies when parsing illegal page-level docblock
  11. Bug #10870: Dead links generated with HTML:Smarty:PHP
  12. Bug #10871: Wrong rendering of inline {@internal}}
  13. Bug #10910: DOM templates create incorrect trees
  14. Bug #11409: PHP Notices accompany Global Never Found errors
  15. Doc #10675: Clear some errors.html items
  16. Doc #10730: Replace Sourceforge Trackers with PEAR
  17. Doc #10914: Can&apos;t use nested tags inside &lt;kbd&gt; or &lt;samp&gt;
  18. Doc #10972: @method does not work
  19. Doc #11032: param type1|type2 not documented
  20. Doc #11143: Provide a Minimal Tutorial File Setup Example
  21.  
  22. Includes these Sourceforge items:
  23. - [1733938] regression: &quot;-&quot; not allowed anymore in converter (file)name
  24. - [1733936] &quot;phpdoc&quot; does not return with error code &quot;0&quot; on success
  25. - [1733345] inline @link tag renders wrong way
  26. - [1724990] @static tag example
  27. - [1724884] object return parameter value
  28. - [1722096] DocBlock template example does not work
  29. - [1720764] documentation update needed
  30. - [1672589] missing elements, bad links with HTML:Smarty:HandS
  31. - [1647423] memory_limit: bad if-clause
  32. - [1634153] require/include with concatenated file name
  33. - [1632496] {@internal}} becomes wrong on documentation
  34. - [1622538] List undocumented classes/functions
  35. - [1602988] Added --ignore-symlinks option
  36. - [1588942] Allow memory_limit setting in phpdoc.ini
  37. - [1588936] Show INI Path at Startup
  38. - [1585840] Refactored RETURNs #3
  39. - [1574047] Refactored RETURNs #2
  40. - [1574043] Refactored RETURNs #1
  41. - [1543289] Apply ignore patterns to subdir of dir, instead of full path
  42. - [1543287] Use predefined PHP env var in phpdoc script
  43. - [1540666] patch for @property, @property-read and @property-write tags
  44. - [1124133] &lt;code&gt; and @include....
  45. - [1044752] List undocumented classes/functions
  46.  
  47. ';
  48. $version '1.4.0';
  49. $release_stability 'stable';
  50. $api '1.4.0';
  51. $api_stability 'stable';
  52. $options = array(
  53. 'baseinstalldir' => 'PhpDocumentor',
  54. 'version' => $version,
  55. 'packagedirectory' => $packagedir,
  56. 'filelistgenerator' => 'cvs',
  57. 'notes' => $notes,
  58. 'package' => 'PhpDocumentor',
  59. 'dir_roles' => array(
  60.     'Documentation' => 'doc',
  61.     'Documentation/tests' => 'test',
  62.     'docbuilder' => 'data',
  63.     'HTML_TreeMenu-1.1.2' => 'data',
  64.     'tutorials' => 'doc',
  65.     ),
  66. 'simpleoutput' => true,
  67. 'exceptions' =>
  68.     array(
  69.         'index.html' => 'data',
  70.         'README' => 'doc',
  71.         'ChangeLog' => 'doc',
  72.         'LICENSE' => 'doc',
  73.         'poweredbyphpdoc.gif' => 'data',
  74.         'INSTALL' => 'doc',
  75.         'FAQ' => 'doc',
  76.         'Authors' => 'doc',
  77.         'Release-1.2.0beta1' => 'doc',
  78.         'Release-1.2.0beta2' => 'doc',
  79.         'Release-1.2.0beta3' => 'doc',
  80.         'Release-1.2.0rc1' => 'doc',
  81.         'Release-1.2.0rc2' => 'doc',
  82.         'Release-1.2.0' => 'doc',
  83.         'Release-1.2.1' => 'doc',
  84.         'Release-1.2.2' => 'doc',
  85.         'Release-1.2.3' => 'doc',
  86.         'Release-1.2.3.1' => 'doc',
  87.         'Release-1.3.0' => 'doc',
  88.         'Release-1.3.1' => 'doc',
  89.         'Release-1.3.2' => 'doc',
  90.         'Release-1.4.0alpha1' => 'doc',
  91.         'Release-1.4.0alpha2' => 'doc',
  92.         'Release-1.4.0rc1' => 'doc',
  93.         'Release-1.4.0rc2' => 'doc',
  94.         'Release-1.4.0' => 'doc',
  95.         'pear-phpdoc' => 'script',
  96.         'pear-phpdoc.bat' => 'script',
  97.         'HTML_TreeMenu-1.1.2/TreeMenu.php' => 'php',
  98.         'phpDocumentor/Smarty-2.6.0/libs/debug.tpl' => 'php',
  99.         'new_phpdoc.php' => 'data',
  100.         'phpdoc.php' => 'data',
  101.         ),
  102. 'ignore' =>
  103.     array('package.xml',
  104.           'package2.xml',
  105.           '*templates/PEAR/*',
  106.           'publicweb-PEAR-1.2.1.patch.txt',
  107.           ),
  108. 'installexceptions' => array('pear-phpdoc' => '/''pear-phpdoc.bat' => '/''scripts/makedoc.sh' => '/'),
  109. );
  110. $pfm2 = PEAR_PackageFileManager2::importOptions(dirname(dirname(__FILE__))
  111.     . DIRECTORY_SEPARATOR . 'package.xml'array_merge($optionsarray('packagefile' => 'package.xml')));
  112. $pfm2->setReleaseVersion($version);
  113. $pfm2->setReleaseStability($release_stability);
  114. $pfm2->setAPIVersion($api);
  115. $pfm2->setAPIStability($api_stability);
  116. $pfm2->setLicense('LGPL''http://www.opensource.org/licenses/lgpl-license.php');
  117. $pfm2->setNotes($notes);
  118. $pfm2->clearDeps();
  119. $pfm2->setPhpDep('4.2.0');
  120. $pfm2->setPearinstallerDep('1.4.6');
  121. $pfm2->addPackageDepWithChannel('optional''XML_Beautifier''pear.php.net''1.1');
  122. $pfm2->addReplacement('pear-phpdoc''pear-config''@PHP-BIN@''php_bin');
  123. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@PHP-BIN@''php_bin');
  124. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@BIN-DIR@''bin_dir');
  125. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@PEAR-DIR@''php_dir');
  126. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@DATA-DIR@''data_dir');
  127. $pfm2->addReplacement('README''package-info''@VER@''version');
  128. $pfm2->addReplacement('README''package-info''@STABILITY@''state');
  129. $pfm2->addReplacement('docbuilder/includes/utilities.php''pear-config''@DATA-DIR@''data_dir');
  130. $pfm2->addReplacement('docbuilder/builder.php''pear-config''@DATA-DIR@''data_dir');
  131. $pfm2->addReplacement('docbuilder/file_dialog.php''pear-config''@DATA-DIR@''data_dir');
  132. $pfm2->addReplacement('docbuilder/file_dialog.php''pear-config''@WEB-DIR@''data_dir');
  133. $pfm2->addReplacement('docbuilder/actions.php''pear-config''@WEB-DIR@''data_dir');
  134. $pfm2->addReplacement('docbuilder/top.php''pear-config''@DATA-DIR@''data_dir');
  135. $pfm2->addReplacement('docbuilder/config.php''pear-config''@DATA-DIR@''data_dir');
  136. $pfm2->addReplacement('docbuilder/config.php''pear-config''@WEB-DIR@''data_dir');
  137. $pfm2->addReplacement('phpDocumentor/Setup.inc.php''pear-config''@DATA-DIR@''data_dir');
  138. $pfm2->addReplacement('phpDocumentor/Converter.inc''pear-config''@DATA-DIR@''data_dir');
  139. $pfm2->addReplacement('phpDocumentor/common.inc.php''package-info''@VER@''version');
  140. $pfm2->addReplacement('phpDocumentor/common.inc.php''pear-config''@PEAR-DIR@''php_dir');
  141. $pfm2->addReplacement('phpDocumentor/IntermediateParser.inc''package-info''@VER@''version');
  142. $pfm2->addReplacement('phpDocumentor/IntermediateParser.inc''pear-config''@PEAR-DIR@''php_dir');
  143. $pfm2->addReplacement('user/pear-makedocs.ini''pear-config''@PEAR-DIR@''php_dir');
  144. $pfm2->addReplacement('user/pear-makedocs.ini''pear-config''@DOC-DIR@''doc_dir');
  145. $pfm2->addReplacement('user/pear-makedocs.ini''package-info''@VER@''version');
  146. $pfm2->addRole('inc''php');
  147. $pfm2->addRole('sh''script');
  148. $pfm2->addUnixEol('pear-phpdoc');
  149. $pfm2->addUnixEol('phpdoc');
  150. $pfm2->addWindowsEol('pear-phpdoc.bat');
  151. $pfm2->addWindowsEol('phpdoc.bat');
  152. $pfm2->generateContents();
  153. $pfm2->setPackageType('php');
  154. $pfm2->addRelease();
  155. $pfm2->setOsInstallCondition('windows');
  156. // these next two files are only used if the archive is extracted as-is
  157. // without installing via "pear install blah"
  158. $pfm2->addIgnoreToRelease("phpdoc");
  159. $pfm2->addIgnoreToRelease('phpdoc.bat');
  160. $pfm2->addIgnoreToRelease('user/makedocs.ini');
  161. $pfm2->addIgnoreToRelease('scripts/makedoc.sh');
  162. $pfm2->addInstallAs('pear-phpdoc''phpdoc');
  163. $pfm2->addInstallAs('pear-phpdoc.bat''phpdoc.bat');
  164. $pfm2->addInstallAs('user/pear-makedocs.ini''user/makedocs.ini');
  165. $pfm2->addRelease();
  166. // these next two files are only used if the archive is extracted as-is
  167. // without installing via "pear install blah"
  168. $pfm2->addIgnoreToRelease("phpdoc");
  169. $pfm2->addIgnoreToRelease('phpdoc.bat');
  170. $pfm2->addIgnoreToRelease('user/makedocs.ini');
  171. $pfm2->addIgnoreToRelease('pear-phpdoc.bat');
  172. $pfm2->addInstallAs('pear-phpdoc''phpdoc');
  173. $pfm2->addInstallAs('user/pear-makedocs.ini''user/makedocs.ini');
  174. if (isset($_GET['make']|| (isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  175.     $pfm2->writePackageFile();
  176. else {
  177.     $pfm2->debugPackageFile();
  178. }
  179. if (!isset($_GET['make']&& !(isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  180.     echo '<a href="' $_SERVER['PHP_SELF''?make=1">Make this file</a>';
  181. }
  182. ?>

Documentation generated on Mon, 11 Mar 2019 15:08:02 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.