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 #10864: PhpDocumentor dies when parsing illegal page-level docblock
  10. Bug #10870: Dead links generated with HTML:Smarty:PHP
  11. Bug #10871: Wrong rendering of inline {@internal}}
  12. Bug #10910: DOM templates create incorrect trees
  13. Doc #10914: Can\'t use nested tags inside <kbd> or <samp>
  14. Doc #10972: @method does not work
  15. Doc #11032: param type1|type2 not documented
  16. Doc #11143: Provide a Minimal Tutorial File Setup Example
  17.  
  18. Includes no Sourceforge items.
  19.  
  20. ';
  21. $version '1.4.0a2';
  22. $release_stability 'alpha';
  23. $api '1.4.0';
  24. $api_stability 'alpha';
  25. $options = array(
  26. 'baseinstalldir' => 'PhpDocumentor',
  27. 'version' => $version,
  28. 'packagedirectory' => $packagedir,
  29. 'filelistgenerator' => 'cvs',
  30. 'notes' => $notes,
  31. 'package' => 'PhpDocumentor',
  32. 'dir_roles' => array(
  33.     'Documentation' => 'doc',
  34.     'Documentation/tests' => 'test',
  35.     'docbuilder' => 'data',
  36.     'HTML_TreeMenu-1.1.2' => 'data',
  37.     'tutorials' => 'doc',
  38.     ),
  39. 'simpleoutput' => true,
  40. 'exceptions' =>
  41.     array(
  42.         'index.html' => 'data',
  43.         'README' => 'doc',
  44.         'ChangeLog' => 'doc',
  45.         'LICENSE' => 'doc',
  46.         'poweredbyphpdoc.gif' => 'data',
  47.         'INSTALL' => 'doc',
  48.         'FAQ' => 'doc',
  49.         'Authors' => 'doc',
  50.         'Release-1.2.0beta1' => 'doc',
  51.         'Release-1.2.0beta2' => 'doc',
  52.         'Release-1.2.0beta3' => 'doc',
  53.         'Release-1.2.0rc1' => 'doc',
  54.         'Release-1.2.0rc2' => 'doc',
  55.         'Release-1.2.0' => 'doc',
  56.         'Release-1.2.1' => 'doc',
  57.         'Release-1.2.2' => 'doc',
  58.         'Release-1.2.3' => 'doc',
  59.         'Release-1.2.3.1' => 'doc',
  60.         'Release-1.3.0' => 'doc',
  61.         'Release-1.3.1' => 'doc',
  62.         'Release-1.3.2' => 'doc',
  63.         'Release-1.4.0alpha1' => 'doc',
  64.         'Release-1.4.0a2' => 'doc',
  65.         'pear-phpdoc' => 'script',
  66.         'pear-phpdoc.bat' => 'script',
  67.         'HTML_TreeMenu-1.1.2/TreeMenu.php' => 'php',
  68.         'phpDocumentor/Smarty-2.6.0/libs/debug.tpl' => 'php',
  69.         'new_phpdoc.php' => 'data',
  70.         'phpdoc.php' => 'data',
  71.         ),
  72. 'ignore' =>
  73.     array('package.xml',
  74.           'package2.xml',
  75.           '*templates/PEAR/*',
  76.           'publicweb-PEAR-1.2.1.patch.txt',
  77.           ),
  78. 'installexceptions' => array('pear-phpdoc' => '/''pear-phpdoc.bat' => '/''scripts/makedoc.sh' => '/'),
  79. );
  80. $pfm2 = PEAR_PackageFileManager2::importOptions(dirname(dirname(__FILE__))
  81.     . DIRECTORY_SEPARATOR . 'package.xml'array_merge($optionsarray('packagefile' => 'package.xml')));
  82. $pfm2->setReleaseVersion($version);
  83. $pfm2->setReleaseStability($release_stability);
  84. $pfm2->setAPIVersion($api);
  85. $pfm2->setAPIStability($api_stability);
  86. $pfm2->setLicense('LGPL''http://www.opensource.org/licenses/lgpl-license.php');
  87. $pfm2->setNotes($notes);
  88. $pfm2->clearDeps();
  89. $pfm2->setPhpDep('4.2.0');
  90. $pfm2->setPearinstallerDep('1.4.6');
  91. $pfm2->addPackageDepWithChannel('optional''XML_Beautifier''pear.php.net''1.1');
  92. $pfm2->addReplacement('pear-phpdoc''pear-config''@PHP-BIN@''php_bin');
  93. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@PHP-BIN@''php_bin');
  94. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@BIN-DIR@''bin_dir');
  95. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@PEAR-DIR@''php_dir');
  96. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@DATA-DIR@''data_dir');
  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/common.inc.php''package-info''@VER@''version');
  108. $pfm2->addReplacement('phpDocumentor/common.inc.php''pear-config''@PEAR-DIR@''php_dir');
  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('user/pear-makedocs.ini''pear-config''@PEAR-DIR@''php_dir');
  112. $pfm2->addReplacement('user/pear-makedocs.ini''pear-config''@DOC-DIR@''doc_dir');
  113. $pfm2->addReplacement('user/pear-makedocs.ini''package-info''@VER@''version');
  114. $pfm2->addRole('inc''php');
  115. $pfm2->addRole('sh''script');
  116. $pfm2->addUnixEol('pear-phpdoc');
  117. $pfm2->addUnixEol('phpdoc');
  118. $pfm2->addWindowsEol('pear-phpdoc.bat');
  119. $pfm2->addWindowsEol('phpdoc.bat');
  120. $pfm2->generateContents();
  121. $pfm2->setPackageType('php');
  122. $pfm2->addRelease();
  123. $pfm2->setOsInstallCondition('windows');
  124. // these next two files are only used if the archive is extracted as-is
  125. // without installing via "pear install blah"
  126. $pfm2->addIgnoreToRelease("phpdoc");
  127. $pfm2->addIgnoreToRelease('phpdoc.bat');
  128. $pfm2->addIgnoreToRelease('user/makedocs.ini');
  129. $pfm2->addIgnoreToRelease('scripts/makedoc.sh');
  130. $pfm2->addInstallAs('pear-phpdoc''phpdoc');
  131. $pfm2->addInstallAs('pear-phpdoc.bat''phpdoc.bat');
  132. $pfm2->addInstallAs('user/pear-makedocs.ini''user/makedocs.ini');
  133. $pfm2->addRelease();
  134. // these next two files are only used if the archive is extracted as-is
  135. // without installing via "pear install blah"
  136. $pfm2->addIgnoreToRelease("phpdoc");
  137. $pfm2->addIgnoreToRelease('phpdoc.bat');
  138. $pfm2->addIgnoreToRelease('user/makedocs.ini');
  139. $pfm2->addIgnoreToRelease('pear-phpdoc.bat');
  140. $pfm2->addInstallAs('pear-phpdoc''phpdoc');
  141. $pfm2->addInstallAs('user/pear-makedocs.ini''user/makedocs.ini');
  142. if (isset($_GET['make']|| (isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  143.     $pfm2->writePackageFile();
  144. else {
  145.     $pfm2->debugPackageFile();
  146. }
  147. if (!isset($_GET['make']&& !(isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  148.     echo '<a href="' $_SERVER['PHP_SELF''?make=1">Make this file</a>';
  149. }
  150. ?>

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