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.  * Bug #11654: @static in DocBlock Template can cause PHP Notice [ashnazg|mvriel]
  10.  * Bug #11813: @link URL short description does&apos;nt work [ashnazg]
  11.  * Bug #13800: Invalid tutorials tree generation [ashnazg|wrzasq]
  12.  * Bug #14191: earthli template contains bad HTML [ashnazg|jorrit]
  13.  * Bug #14472: Incorrect line numbers with heredoc [ashnazg|indigo]
  14.  * Bug #15517: Wrong table of contents in tutorials [ashnazg]
  15.  * Bug #16431: Warning: get_class() expects parameter 1 to be object, string given [ashnazg|aharvey]
  16.  * Bug #16441: Parse error when parsing &lt;&lt;foo&gt;&gt; [ashnazg|marcusson]
  17.  * Bug #16446: Use of split() causes E_DEPRECATED warnings [ashnazg|aharvey]
  18.  * Feature #13599: Third Gotcha on Bare Minimum Tutorial example [ashnazg]
  19.  * Feature #14312: @param tag with additional arguments doesn&apos;t work as expected [ashnazg]
  20.  * Feature #14461: Data Type Confusion for Some Tags [ashnazg]
  21.  
  22.  
  23. Includes these Sourceforge items:
  24. * [2692032] use of templatebase - missing information [ashnazg]
  25. * [2669256] get_class() expects parameter 1 to be object, string given [ashnazg]
  26. * [2669110] ereg / split is deprecated [ashnazg]
  27. * [1940914] Tutorials tree is added to tutorials which have no children [ashnazg|wrzasq]
  28. * [1929926] Default version number not updated [ashnazg]
  29. * [1918851] @toc render is wrong in earthli tutorial_toc.tpl [ashnazg]
  30. * [1903136] Constant Link not worked [ashnazg|scholesmafia]
  31. * [1771553] @link URL short description does\'nt work [ashnazg]
  32.  
  33. ';
  34. $version '1.4.3';
  35. $release_stability 'stable';
  36. $api '1.4.0';
  37. $api_stability 'stable';
  38. $options = array(
  39. 'baseinstalldir' => 'PhpDocumentor',
  40. 'version' => $version,
  41. 'packagedirectory' => $packagedir,
  42. 'filelistgenerator' => 'cvs',
  43. 'notes' => $notes,
  44. 'package' => 'PhpDocumentor',
  45. 'dir_roles' => array(
  46.     'Documentation' => 'doc',
  47.     'docbuilder' => 'data',
  48.     'HTML_TreeMenu-1.1.2' => 'data',
  49.     'tutorials' => 'doc',
  50.     'tests' => 'test',
  51.     ),
  52. 'simpleoutput' => true,
  53. 'exceptions' =>
  54.     array(
  55.         'index.html' => 'data',
  56.         'README' => 'doc',
  57.         'ChangeLog' => 'doc',
  58.         'LICENSE' => 'doc',
  59.         'poweredbyphpdoc.gif' => 'data',
  60.         'INSTALL' => 'doc',
  61.         'FAQ' => 'doc',
  62.         'Authors' => 'doc',
  63.         'Release-1.4.3' => 'doc',
  64.         'pear-phpdoc' => 'script',
  65.         'pear-phpdoc.bat' => 'script',
  66.         'HTML_TreeMenu-1.1.2/TreeMenu.php' => 'php',
  67.         'phpDocumentor/Smarty-2.6.0/libs/debug.tpl' => 'php',
  68.         'new_phpdoc.php' => 'data',
  69.         'phpdoc.php' => 'data',
  70.         'scripts/makedoc.sh' => 'php',
  71.         ),
  72. 'ignore' =>
  73.     array('package.xml',
  74.           '*templates/PEAR/*',
  75.           ),
  76. 'installexceptions' => array('pear-phpdoc' => '/''pear-phpdoc.bat' => '/'),
  77. );
  78. $pfm2 = PEAR_PackageFileManager2::importOptions(dirname(dirname(__FILE__))
  79.     . DIRECTORY_SEPARATOR . 'package.xml'array_merge($optionsarray('packagefile' => 'package.xml')));
  80. $pfm2->setReleaseVersion($version);
  81. $pfm2->setReleaseStability($release_stability);
  82. $pfm2->setAPIVersion($api);
  83. $pfm2->setAPIStability($api_stability);
  84. $pfm2->setLicense('LGPL''http://www.opensource.org/licenses/lgpl-license.php');
  85. $pfm2->setNotes($notes);
  86. $pfm2->clearDeps();
  87. $pfm2->setPhpDep('4.2.0');
  88. $pfm2->setPearinstallerDep('1.4.6');
  89. $pfm2->addPackageDepWithChannel('optional''XML_Beautifier''pear.php.net''1.1');
  90. $pfm2->addReplacement('pear-phpdoc''pear-config''@PHP-BIN@''php_bin');
  91. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@PHP-BIN@''php_bin');
  92. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@BIN-DIR@''bin_dir');
  93. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@PEAR-DIR@''php_dir');
  94. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@DATA-DIR@''data_dir');
  95. $pfm2->addReplacement('README''package-info''@VER@''version');
  96. $pfm2->addReplacement('README''package-info''@STABILITY@''state');
  97. $pfm2->addReplacement('docbuilder/includes/utilities.php''pear-config''@DATA-DIR@''data_dir');
  98. $pfm2->addReplacement('docbuilder/builder.php''pear-config''@DATA-DIR@''data_dir');
  99. $pfm2->addReplacement('docbuilder/file_dialog.php''pear-config''@DATA-DIR@''data_dir');
  100. $pfm2->addReplacement('docbuilder/file_dialog.php''pear-config''@WEB-DIR@''data_dir');
  101. $pfm2->addReplacement('docbuilder/actions.php''pear-config''@WEB-DIR@''data_dir');
  102. $pfm2->addReplacement('docbuilder/top.php''pear-config''@DATA-DIR@''data_dir');
  103. $pfm2->addReplacement('docbuilder/config.php''pear-config''@DATA-DIR@''data_dir');
  104. $pfm2->addReplacement('docbuilder/config.php''pear-config''@WEB-DIR@''data_dir');
  105. $pfm2->addReplacement('phpDocumentor/Setup.inc.php''pear-config''@DATA-DIR@''data_dir');
  106. $pfm2->addReplacement('phpDocumentor/Converter.inc''pear-config''@DATA-DIR@''data_dir');
  107. $pfm2->addReplacement('phpDocumentor/Classes.inc''package-info''@VER@''version');
  108. $pfm2->addReplacement('phpDocumentor/DescHTML.inc''package-info''@VER@''version');
  109. $pfm2->addReplacement('phpDocumentor/DocBlockTags.inc''package-info''@VER@''version');
  110. $pfm2->addReplacement('phpDocumentor/Errors.inc''package-info''@VER@''version');
  111. $pfm2->addReplacement('phpDocumentor/EventStack.inc''package-info''@VER@''version');
  112. $pfm2->addReplacement('phpDocumentor/common.inc.php''package-info''@VER@''version');
  113. $pfm2->addReplacement('phpDocumentor/common.inc.php''pear-config''@PEAR-DIR@''php_dir');
  114. $pfm2->addReplacement('phpDocumentor/HighlightParser.inc''package-info''@VER@''version');
  115. $pfm2->addReplacement('phpDocumentor/InlineTags.inc''package-info''@VER@''version');
  116. $pfm2->addReplacement('phpDocumentor/IntermediateParser.inc''package-info''@VER@''version');
  117. $pfm2->addReplacement('phpDocumentor/IntermediateParser.inc''pear-config''@PEAR-DIR@''php_dir');
  118. $pfm2->addReplacement('phpDocumentor/LinkClasses.inc''package-info''@VER@''version');
  119. $pfm2->addReplacement('phpDocumentor/PackagePageElements.inc''package-info''@VER@''version');
  120. $pfm2->addReplacement('phpDocumentor/ParserData.inc''package-info''@VER@''version');
  121. $pfm2->addReplacement('phpDocumentor/phpDocumentorTParser.inc''package-info''@VER@''version');
  122. $pfm2->addReplacement('phpDocumentor/phpDocumentorTWordParser.inc''package-info''@VER@''version');
  123. $pfm2->addReplacement('phpDocumentor/ProceduralPages.inc''package-info''@VER@''version');
  124. $pfm2->addReplacement('phpDocumentor/Publisher.inc''package-info''@VER@''version');
  125. $pfm2->addReplacement('phpDocumentor/TutorialHighlightParser.inc''package-info''@VER@''version');
  126. $pfm2->addReplacement('phpDocumentor/WordParser.inc''package-info''@VER@''version');
  127. $pfm2->addReplacement('phpDocumentor/XMLpackagePageParser.inc''package-info''@VER@''version');
  128. $pfm2->addReplacement('user/pear-makedocs.ini''pear-config''@PEAR-DIR@''php_dir');
  129. $pfm2->addReplacement('user/pear-makedocs.ini''pear-config''@DOC-DIR@''doc_dir');
  130. $pfm2->addReplacement('user/pear-makedocs.ini''package-info''@VER@''version');
  131. $pfm2->addRole('inc''php');
  132. $pfm2->addRole('sh''script');
  133. $pfm2->addUnixEol('pear-phpdoc');
  134. $pfm2->addUnixEol('phpdoc');
  135. $pfm2->addWindowsEol('pear-phpdoc.bat');
  136. $pfm2->addWindowsEol('phpdoc.bat');
  137. $pfm2->generateContents();
  138. $pfm2->setPackageType('php');
  139. $pfm2->addRelease();
  140. $pfm2->setOsInstallCondition('windows');
  141. // these next few files are only used if the archive is extracted as-is
  142. // without installing via "pear install blah"
  143. $pfm2->addIgnoreToRelease("phpdoc");
  144. $pfm2->addIgnoreToRelease('phpdoc.bat');
  145. $pfm2->addIgnoreToRelease('user/makedocs.ini');
  146. $pfm2->addIgnoreToRelease('scripts/makedoc.sh');
  147. $pfm2->addInstallAs('pear-phpdoc''phpdoc');
  148. $pfm2->addInstallAs('pear-phpdoc.bat''phpdoc.bat');
  149. $pfm2->addInstallAs('user/pear-makedocs.ini''user/makedocs.ini');
  150. $pfm2->addRelease();
  151. // these next two files are only used if the archive is extracted as-is
  152. // without installing via "pear install blah"
  153. $pfm2->addIgnoreToRelease("phpdoc");
  154. $pfm2->addIgnoreToRelease('phpdoc.bat');
  155. $pfm2->addIgnoreToRelease('user/makedocs.ini');
  156. $pfm2->addIgnoreToRelease('pear-phpdoc.bat');
  157. $pfm2->addInstallAs('pear-phpdoc''phpdoc');
  158. $pfm2->addInstallAs('user/pear-makedocs.ini''user/makedocs.ini');
  159. if (isset($_GET['make']|| (isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  160.     $pfm2->writePackageFile();
  161. else {
  162.     $pfm2->debugPackageFile();
  163. }
  164. if (!isset($_GET['make']&& !(isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  165.     echo '<a href="' $_SERVER['PHP_SELF''?make=1">Make this file</a>';
  166. }
  167. ?>

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