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 #11409: PHP Notices accompany Global Never Found errors
  10.  
  11. Includes these Sourceforge items:
  12. - [1724990] @static tag example
  13. - [1724884] object return parameter value
  14. - [1720764] documentation update needed
  15. - [1672589] missing elements, bad links with HTML:Smarty:HandS
  16. - [1634153] require/include with concatenated file name
  17. - [1632496] {@internal}} becomes wrong on documentation
  18. - [1124133] <code> and @include....
  19.  
  20. ';
  21. $version '1.4.0RC1';
  22. $release_stability 'beta';
  23. $api '1.4.0';
  24. $api_stability 'beta';
  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.0alpha2' => 'doc',
  65.         'Release-1.4.0rc1' => 'doc',
  66.         'pear-phpdoc' => 'script',
  67.         'pear-phpdoc.bat' => 'script',
  68.         'HTML_TreeMenu-1.1.2/TreeMenu.php' => 'php',
  69.         'phpDocumentor/Smarty-2.6.0/libs/debug.tpl' => 'php',
  70.         'new_phpdoc.php' => 'data',
  71.         'phpdoc.php' => 'data',
  72.         ),
  73. 'ignore' =>
  74.     array('package.xml',
  75.           'package2.xml',
  76.           '*templates/PEAR/*',
  77.           'publicweb-PEAR-1.2.1.patch.txt',
  78.           ),
  79. 'installexceptions' => array('pear-phpdoc' => '/''pear-phpdoc.bat' => '/''scripts/makedoc.sh' => '/'),
  80. );
  81. $pfm2 = PEAR_PackageFileManager2::importOptions(dirname(dirname(__FILE__))
  82.     . DIRECTORY_SEPARATOR . 'package.xml'array_merge($optionsarray('packagefile' => 'package.xml')));
  83. $pfm2->setReleaseVersion($version);
  84. $pfm2->setReleaseStability($release_stability);
  85. $pfm2->setAPIVersion($api);
  86. $pfm2->setAPIStability($api_stability);
  87. $pfm2->setLicense('LGPL''http://www.opensource.org/licenses/lgpl-license.php');
  88. $pfm2->setNotes($notes);
  89. $pfm2->clearDeps();
  90. $pfm2->setPhpDep('4.2.0');
  91. $pfm2->setPearinstallerDep('1.4.6');
  92. $pfm2->addPackageDepWithChannel('optional''XML_Beautifier''pear.php.net''1.1');
  93. $pfm2->addReplacement('pear-phpdoc''pear-config''@PHP-BIN@''php_bin');
  94. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@PHP-BIN@''php_bin');
  95. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@BIN-DIR@''bin_dir');
  96. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@PEAR-DIR@''php_dir');
  97. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@DATA-DIR@''data_dir');
  98. $pfm2->addReplacement('docbuilder/includes/utilities.php''pear-config''@DATA-DIR@''data_dir');
  99. $pfm2->addReplacement('docbuilder/builder.php''pear-config''@DATA-DIR@''data_dir');
  100. $pfm2->addReplacement('docbuilder/file_dialog.php''pear-config''@DATA-DIR@''data_dir');
  101. $pfm2->addReplacement('docbuilder/file_dialog.php''pear-config''@WEB-DIR@''data_dir');
  102. $pfm2->addReplacement('docbuilder/actions.php''pear-config''@WEB-DIR@''data_dir');
  103. $pfm2->addReplacement('docbuilder/top.php''pear-config''@DATA-DIR@''data_dir');
  104. $pfm2->addReplacement('docbuilder/config.php''pear-config''@DATA-DIR@''data_dir');
  105. $pfm2->addReplacement('docbuilder/config.php''pear-config''@WEB-DIR@''data_dir');
  106. $pfm2->addReplacement('phpDocumentor/Setup.inc.php''pear-config''@DATA-DIR@''data_dir');
  107. $pfm2->addReplacement('phpDocumentor/Converter.inc''pear-config''@DATA-DIR@''data_dir');
  108. $pfm2->addReplacement('phpDocumentor/common.inc.php''package-info''@VER@''version');
  109. $pfm2->addReplacement('phpDocumentor/common.inc.php''pear-config''@PEAR-DIR@''php_dir');
  110. $pfm2->addReplacement('phpDocumentor/IntermediateParser.inc''package-info''@VER@''version');
  111. $pfm2->addReplacement('phpDocumentor/IntermediateParser.inc''pear-config''@PEAR-DIR@''php_dir');
  112. $pfm2->addReplacement('user/pear-makedocs.ini''pear-config''@PEAR-DIR@''php_dir');
  113. $pfm2->addReplacement('user/pear-makedocs.ini''pear-config''@DOC-DIR@''doc_dir');
  114. $pfm2->addReplacement('user/pear-makedocs.ini''package-info''@VER@''version');
  115. $pfm2->addRole('inc''php');
  116. $pfm2->addRole('sh''script');
  117. $pfm2->addUnixEol('pear-phpdoc');
  118. $pfm2->addUnixEol('phpdoc');
  119. $pfm2->addWindowsEol('pear-phpdoc.bat');
  120. $pfm2->addWindowsEol('phpdoc.bat');
  121. $pfm2->generateContents();
  122. $pfm2->setPackageType('php');
  123. $pfm2->addRelease();
  124. $pfm2->setOsInstallCondition('windows');
  125. // these next two files are only used if the archive is extracted as-is
  126. // without installing via "pear install blah"
  127. $pfm2->addIgnoreToRelease("phpdoc");
  128. $pfm2->addIgnoreToRelease('phpdoc.bat');
  129. $pfm2->addIgnoreToRelease('user/makedocs.ini');
  130. $pfm2->addIgnoreToRelease('scripts/makedoc.sh');
  131. $pfm2->addInstallAs('pear-phpdoc''phpdoc');
  132. $pfm2->addInstallAs('pear-phpdoc.bat''phpdoc.bat');
  133. $pfm2->addInstallAs('user/pear-makedocs.ini''user/makedocs.ini');
  134. $pfm2->addRelease();
  135. // these next two files are only used if the archive is extracted as-is
  136. // without installing via "pear install blah"
  137. $pfm2->addIgnoreToRelease("phpdoc");
  138. $pfm2->addIgnoreToRelease('phpdoc.bat');
  139. $pfm2->addIgnoreToRelease('user/makedocs.ini');
  140. $pfm2->addIgnoreToRelease('pear-phpdoc.bat');
  141. $pfm2->addInstallAs('pear-phpdoc''phpdoc');
  142. $pfm2->addInstallAs('user/pear-makedocs.ini''user/makedocs.ini');
  143. if (isset($_GET['make']|| (isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  144.     $pfm2->writePackageFile();
  145. else {
  146.     $pfm2->debugPackageFile();
  147. }
  148. if (!isset($_GET['make']&& !(isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  149.     echo '<a href="' $_SERVER['PHP_SELF''?make=1">Make this file</a>';
  150. }
  151. ?>

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