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\'t Die on Empty Tag Descriptions
  10. Doc #10675: Clear some errors.html items
  11. Doc #10730: Replace Sourceforge Trackers with PEAR
  12.  
  13. Includes these Sourceforge items:
  14. - [1647423] memory_limit: bad if-clause
  15. - [1622538] List undocumented classes/functions
  16. - [1602988] Added --ignore-symlinks option
  17. - [1588942] Allow memory_limit setting in phpdoc.ini
  18. - [1588936] Show INI Path at Startup
  19. - [1585840] Refactored RETURNs #3
  20. - [1574047] Refactored RETURNs #2
  21. - [1574043] Refactored RETURNs #1
  22. - [1543289] Apply ignore patterns to subdir of dir, instead of full path
  23. - [1543287] Use predefined PHP env var in phpdoc script
  24. - [1540666] patch for @property, @property-read and @property-write tags
  25. - [1044752] List undocumented classes/functions
  26.  
  27. ';
  28. $version '1.4.0a1';
  29. $release_stability 'alpha';
  30. $api '1.4.0';
  31. $api_stability 'alpha';
  32. $options = array(
  33. 'baseinstalldir' => 'PhpDocumentor',
  34. 'version' => $version,
  35. 'packagedirectory' => $packagedir,
  36. 'filelistgenerator' => 'cvs',
  37. 'notes' => $notes,
  38. 'package' => 'PhpDocumentor',
  39. 'dir_roles' => array(
  40.     'Documentation' => 'doc',
  41.     'Documentation/tests' => 'test',
  42.     'docbuilder' => 'data',
  43.     'HTML_TreeMenu-1.1.2' => 'data',
  44.     'tutorials' => 'doc',
  45.     ),
  46. 'simpleoutput' => true,
  47. 'exceptions' =>
  48.     array(
  49.         'index.html' => 'data',
  50.         'README' => 'doc',
  51.         'ChangeLog' => 'doc',
  52.         'LICENSE' => 'doc',
  53.         'poweredbyphpdoc.gif' => 'data',
  54.         'INSTALL' => 'doc',
  55.         'FAQ' => 'doc',
  56.         'Authors' => 'doc',
  57.         'Release-1.2.0beta1' => 'doc',
  58.         'Release-1.2.0beta2' => 'doc',
  59.         'Release-1.2.0beta3' => 'doc',
  60.         'Release-1.2.0rc1' => 'doc',
  61.         'Release-1.2.0rc2' => 'doc',
  62.         'Release-1.2.0' => 'doc',
  63.         'Release-1.2.1' => 'doc',
  64.         'Release-1.2.2' => 'doc',
  65.         'Release-1.2.3' => 'doc',
  66.         'Release-1.2.3.1' => 'doc',
  67.         'Release-1.3.0' => 'doc',
  68.         'Release-1.3.1' => 'doc',
  69.         'Release-1.3.2' => 'doc',
  70.         'Release-1.4.0a1' => 'doc',
  71.         'pear-phpdoc' => 'script',
  72.         'pear-phpdoc.bat' => 'script',
  73.         'HTML_TreeMenu-1.1.2/TreeMenu.php' => 'php',
  74.         'phpDocumentor/Smarty-2.6.0/libs/debug.tpl' => 'php',
  75.         'new_phpdoc.php' => 'data',
  76.         'phpdoc.php' => 'data',
  77.         ),
  78. 'ignore' =>
  79.     array('package.xml',
  80.           'package2.xml',
  81.           '*templates/PEAR/*',
  82.           'publicweb-PEAR-1.2.1.patch.txt',
  83.           ),
  84. 'installexceptions' => array('pear-phpdoc' => '/''pear-phpdoc.bat' => '/''scripts/makedoc.sh' => '/'),
  85. );
  86. $pfm2 = PEAR_PackageFileManager2::importOptions(dirname(dirname(__FILE__))
  87.     . DIRECTORY_SEPARATOR . 'package.xml'array_merge($optionsarray('packagefile' => 'package.xml')));
  88. $pfm2->setReleaseVersion($version);
  89. $pfm2->setReleaseStability($release_stability);
  90. $pfm2->setAPIVersion($api);
  91. $pfm2->setAPIStability($api_stability);
  92. $pfm2->setLicense('LGPL''http://www.opensource.org/licenses/lgpl-license.php');
  93. $pfm2->setNotes($notes);
  94. $pfm2->clearDeps();
  95. $pfm2->setPhpDep('4.2.0');
  96. $pfm2->setPearinstallerDep('1.4.6');
  97. $pfm2->addPackageDepWithChannel('optional''XML_Beautifier''pear.php.net''1.1');
  98. $pfm2->addReplacement('pear-phpdoc''pear-config''@PHP-BIN@''php_bin');
  99. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@PHP-BIN@''php_bin');
  100. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@BIN-DIR@''bin_dir');
  101. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@PEAR-DIR@''php_dir');
  102. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@DATA-DIR@''data_dir');
  103. $pfm2->addReplacement('docbuilder/includes/utilities.php''pear-config''@DATA-DIR@''data_dir');
  104. $pfm2->addReplacement('docbuilder/builder.php''pear-config''@DATA-DIR@''data_dir');
  105. $pfm2->addReplacement('docbuilder/file_dialog.php''pear-config''@DATA-DIR@''data_dir');
  106. $pfm2->addReplacement('docbuilder/file_dialog.php''pear-config''@WEB-DIR@''data_dir');
  107. $pfm2->addReplacement('docbuilder/actions.php''pear-config''@WEB-DIR@''data_dir');
  108. $pfm2->addReplacement('docbuilder/top.php''pear-config''@DATA-DIR@''data_dir');
  109. $pfm2->addReplacement('docbuilder/config.php''pear-config''@DATA-DIR@''data_dir');
  110. $pfm2->addReplacement('docbuilder/config.php''pear-config''@WEB-DIR@''data_dir');
  111. $pfm2->addReplacement('phpDocumentor/Setup.inc.php''pear-config''@DATA-DIR@''data_dir');
  112. $pfm2->addReplacement('phpDocumentor/Converter.inc''pear-config''@DATA-DIR@''data_dir');
  113. $pfm2->addReplacement('phpDocumentor/common.inc.php''package-info''@VER@''version');
  114. $pfm2->addReplacement('phpDocumentor/common.inc.php''pear-config''@PEAR-DIR@''php_dir');
  115. $pfm2->addReplacement('phpDocumentor/IntermediateParser.inc''package-info''@VER@''version');
  116. $pfm2->addReplacement('phpDocumentor/IntermediateParser.inc''pear-config''@PEAR-DIR@''php_dir');
  117. $pfm2->addReplacement('user/pear-makedocs.ini''pear-config''@PEAR-DIR@''php_dir');
  118. $pfm2->addReplacement('user/pear-makedocs.ini''pear-config''@DOC-DIR@''doc_dir');
  119. $pfm2->addReplacement('user/pear-makedocs.ini''package-info''@VER@''version');
  120. $pfm2->addRole('inc''php');
  121. $pfm2->addRole('sh''script');
  122. $pfm2->addUnixEol('pear-phpdoc');
  123. $pfm2->addUnixEol('phpdoc');
  124. $pfm2->addWindowsEol('pear-phpdoc.bat');
  125. $pfm2->addWindowsEol('phpdoc.bat');
  126. $pfm2->generateContents();
  127. $pfm2->setPackageType('php');
  128. $pfm2->addRelease();
  129. $pfm2->setOsInstallCondition('windows');
  130. // these next two files are only used if the archive is extracted as-is
  131. // without installing via "pear install blah"
  132. $pfm2->addIgnoreToRelease("phpdoc");
  133. $pfm2->addIgnoreToRelease('phpdoc.bat');
  134. $pfm2->addIgnoreToRelease('user/makedocs.ini');
  135. $pfm2->addIgnoreToRelease('scripts/makedoc.sh');
  136. $pfm2->addInstallAs('pear-phpdoc''phpdoc');
  137. $pfm2->addInstallAs('pear-phpdoc.bat''phpdoc.bat');
  138. $pfm2->addInstallAs('user/pear-makedocs.ini''user/makedocs.ini');
  139. $pfm2->addRelease();
  140. // these next two files are only used if the archive is extracted as-is
  141. // without installing via "pear install blah"
  142. $pfm2->addIgnoreToRelease("phpdoc");
  143. $pfm2->addIgnoreToRelease('phpdoc.bat');
  144. $pfm2->addIgnoreToRelease('user/makedocs.ini');
  145. $pfm2->addIgnoreToRelease('pear-phpdoc.bat');
  146. $pfm2->addInstallAs('pear-phpdoc''phpdoc');
  147. $pfm2->addInstallAs('user/pear-makedocs.ini''user/makedocs.ini');
  148. if (isset($_GET['make']|| (isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  149.     $pfm2->writePackageFile();
  150. else {
  151.     $pfm2->debugPackageFile();
  152. }
  153. if (!isset($_GET['make']&& !(isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  154.     echo '<a href="' $_SERVER['PHP_SELF''?make=1">Make this file</a>';
  155. }
  156. ?>

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