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 #11755: Remove Unused DocBlock_Lexer and PHPT Tests [ashnazg]
  10. Req #11757: Move PhpUnit Tests into new tests dir [ashnazg]
  11. Bug #10909: PHP Notice in PDF Converter line 210 [ashnazg]
  12. Bug #11613: -q flag is not honoured [ashnazg]
  13. Bug #11683: examples displayed using earthli style are not rendered properly [ashnazg|kguest]
  14. Bug #11788: Two failing unit tests [ashnazg]
  15. Bug #11809: Incorrect @name usage causes fatal crash [ashnazg]
  16. Bug #12121: phpdoc.bat cannot launch php.exe [ashnazg|kalvaro]
  17. Bug #12172: media files are not being copied [ashnazg|nemesis]
  18. Bug #12201: Misleading error message [ashnazg|yunosh]
  19. Doc #12459: @subpackage does not fix name conflicts [ashnazg]
  20.  
  21. Includes these Sourceforge items:
  22. - [1846302] php version > 4.3.0 and tokenizer [ashnazg]
  23. - [1845584] File suffix should be lowercase [ashnazg]
  24. - [1842595] makedoc.sh doesn\'t like embedded blanks in paths [ashnazg|munroe_r]
  25. - [1839924] addErrorDie has to exit with non-zero return code! [ashnazg|blueyed]
  26. - [1826342] Data-dependent endless(?) loop in parser [ashnazg]
  27. - [1733936] "phpdoc" does not return with error code "0" on success [ashnazg|blueyed]
  28.  
  29. ';
  30. $version '1.4.1';
  31. $release_stability 'stable';
  32. $api '1.4.0';
  33. $api_stability 'stable';
  34. $options = array(
  35. 'baseinstalldir' => 'PhpDocumentor',
  36. 'version' => $version,
  37. 'packagedirectory' => $packagedir,
  38. 'filelistgenerator' => 'cvs',
  39. 'notes' => $notes,
  40. 'package' => 'PhpDocumentor',
  41. 'dir_roles' => array(
  42.     'Documentation' => 'doc',
  43.     'docbuilder' => 'data',
  44.     'HTML_TreeMenu-1.1.2' => 'data',
  45.     'tutorials' => 'doc',
  46.     'tests' => 'test',
  47.     ),
  48. 'simpleoutput' => true,
  49. 'exceptions' =>
  50.     array(
  51.         'index.html' => 'data',
  52.         'README' => 'doc',
  53.         'ChangeLog' => 'doc',
  54.         'LICENSE' => 'doc',
  55.         'poweredbyphpdoc.gif' => 'data',
  56.         'INSTALL' => 'doc',
  57.         'FAQ' => 'doc',
  58.         'Authors' => 'doc',
  59.         'Release-1.4.1' => 'doc',
  60.         'pear-phpdoc' => 'script',
  61.         'pear-phpdoc.bat' => 'script',
  62.         'HTML_TreeMenu-1.1.2/TreeMenu.php' => 'php',
  63.         'phpDocumentor/Smarty-2.6.0/libs/debug.tpl' => 'php',
  64.         'new_phpdoc.php' => 'data',
  65.         'phpdoc.php' => 'data',
  66.         ),
  67. 'ignore' =>
  68.     array('package.xml',
  69.           '*templates/PEAR/*',
  70.           ),
  71. 'installexceptions' => array('pear-phpdoc' => '/''pear-phpdoc.bat' => '/''scripts/makedoc.sh' => '/'),
  72. );
  73. $pfm2 = PEAR_PackageFileManager2::importOptions(dirname(dirname(__FILE__))
  74.     . DIRECTORY_SEPARATOR . 'package.xml'array_merge($optionsarray('packagefile' => 'package.xml')));
  75. $pfm2->setReleaseVersion($version);
  76. $pfm2->setReleaseStability($release_stability);
  77. $pfm2->setAPIVersion($api);
  78. $pfm2->setAPIStability($api_stability);
  79. $pfm2->setLicense('LGPL''http://www.opensource.org/licenses/lgpl-license.php');
  80. $pfm2->setNotes($notes);
  81. $pfm2->clearDeps();
  82. $pfm2->setPhpDep('4.2.0');
  83. $pfm2->setPearinstallerDep('1.4.6');
  84. $pfm2->addPackageDepWithChannel('optional''XML_Beautifier''pear.php.net''1.1');
  85. $pfm2->addReplacement('pear-phpdoc''pear-config''@PHP-BIN@''php_bin');
  86. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@PHP-BIN@''php_bin');
  87. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@BIN-DIR@''bin_dir');
  88. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@PEAR-DIR@''php_dir');
  89. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@DATA-DIR@''data_dir');
  90. $pfm2->addReplacement('README''package-info''@VER@''version');
  91. $pfm2->addReplacement('README''package-info''@STABILITY@''state');
  92. $pfm2->addReplacement('docbuilder/includes/utilities.php''pear-config''@DATA-DIR@''data_dir');
  93. $pfm2->addReplacement('docbuilder/builder.php''pear-config''@DATA-DIR@''data_dir');
  94. $pfm2->addReplacement('docbuilder/file_dialog.php''pear-config''@DATA-DIR@''data_dir');
  95. $pfm2->addReplacement('docbuilder/file_dialog.php''pear-config''@WEB-DIR@''data_dir');
  96. $pfm2->addReplacement('docbuilder/actions.php''pear-config''@WEB-DIR@''data_dir');
  97. $pfm2->addReplacement('docbuilder/top.php''pear-config''@DATA-DIR@''data_dir');
  98. $pfm2->addReplacement('docbuilder/config.php''pear-config''@DATA-DIR@''data_dir');
  99. $pfm2->addReplacement('docbuilder/config.php''pear-config''@WEB-DIR@''data_dir');
  100. $pfm2->addReplacement('phpDocumentor/Setup.inc.php''pear-config''@DATA-DIR@''data_dir');
  101. $pfm2->addReplacement('phpDocumentor/Converter.inc''pear-config''@DATA-DIR@''data_dir');
  102. $pfm2->addReplacement('phpDocumentor/Classes.inc''package-info''@VER@''version');
  103. $pfm2->addReplacement('phpDocumentor/DescHTML.inc''package-info''@VER@''version');
  104. $pfm2->addReplacement('phpDocumentor/Errors.inc''package-info''@VER@''version');
  105. $pfm2->addReplacement('phpDocumentor/EventStack.inc''package-info''@VER@''version');
  106. $pfm2->addReplacement('phpDocumentor/common.inc.php''package-info''@VER@''version');
  107. $pfm2->addReplacement('phpDocumentor/common.inc.php''pear-config''@PEAR-DIR@''php_dir');
  108. $pfm2->addReplacement('phpDocumentor/HighlightParser.inc''package-info''@VER@''version');
  109. $pfm2->addReplacement('phpDocumentor/IntermediateParser.inc''package-info''@VER@''version');
  110. $pfm2->addReplacement('phpDocumentor/IntermediateParser.inc''pear-config''@PEAR-DIR@''php_dir');
  111. $pfm2->addReplacement('phpDocumentor/phpDocumentorTParser.inc''package-info''@VER@''version');
  112. $pfm2->addReplacement('phpDocumentor/phpDocumentorTWordParser.inc''package-info''@VER@''version');
  113. $pfm2->addReplacement('phpDocumentor/ProceduralPages.inc''package-info''@VER@''version');
  114. $pfm2->addReplacement('phpDocumentor/Publisher.inc''package-info''@VER@''version');
  115. $pfm2->addReplacement('phpDocumentor/TutorialHighlightParser.inc''package-info''@VER@''version');
  116. $pfm2->addReplacement('phpDocumentor/WordParser.inc''package-info''@VER@''version');
  117. $pfm2->addReplacement('phpDocumentor/XMLpackagePageParser.inc''package-info''@VER@''version');
  118. $pfm2->addReplacement('user/pear-makedocs.ini''pear-config''@PEAR-DIR@''php_dir');
  119. $pfm2->addReplacement('user/pear-makedocs.ini''pear-config''@DOC-DIR@''doc_dir');
  120. $pfm2->addReplacement('user/pear-makedocs.ini''package-info''@VER@''version');
  121. $pfm2->addRole('inc''php');
  122. $pfm2->addRole('sh''script');
  123. $pfm2->addUnixEol('pear-phpdoc');
  124. $pfm2->addUnixEol('phpdoc');
  125. $pfm2->addWindowsEol('pear-phpdoc.bat');
  126. $pfm2->addWindowsEol('phpdoc.bat');
  127. $pfm2->generateContents();
  128. $pfm2->setPackageType('php');
  129. $pfm2->addRelease();
  130. $pfm2->setOsInstallCondition('windows');
  131. // these next few files are only used if the archive is extracted as-is
  132. // without installing via "pear install blah"
  133. $pfm2->addIgnoreToRelease("phpdoc");
  134. $pfm2->addIgnoreToRelease('phpdoc.bat');
  135. $pfm2->addIgnoreToRelease('user/makedocs.ini');
  136. $pfm2->addIgnoreToRelease('scripts/makedoc.sh');
  137. $pfm2->addInstallAs('pear-phpdoc''phpdoc');
  138. $pfm2->addInstallAs('pear-phpdoc.bat''phpdoc.bat');
  139. $pfm2->addInstallAs('user/pear-makedocs.ini''user/makedocs.ini');
  140. $pfm2->addRelease();
  141. // these next two 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('pear-phpdoc.bat');
  147. $pfm2->addInstallAs('pear-phpdoc''phpdoc');
  148. $pfm2->addInstallAs('user/pear-makedocs.ini''user/makedocs.ini');
  149. if (isset($_GET['make']|| (isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  150.     $pfm2->writePackageFile();
  151. else {
  152.     $pfm2->debugPackageFile();
  153. }
  154. if (!isset($_GET['make']&& !(isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  155.     echo '<a href="' $_SERVER['PHP_SELF''?make=1">Make this file</a>';
  156. }
  157. ?>

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