phpDocumentor 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.  - fixed these bugs reported at sourceforge
  9.  [ 1544977 ] Command line arguments split by spaces (fix included)
  10.  [ 1545927 ] HTMLSmartyConverter logo not in package
  11.  [ 1573807 ] CHM Convertor does not strip full path for all TOC entries
  12.  [ 1575145 ] \'-q on\' quiet mode not fully quiet
  13.  [ 1581487 ] subdirectory include another subdirectory doc error.
  14.  - fixed these bugs reported in PEAR:
  15.   Bug #8520: Broken XML when XML_Beautifier is installed
  16.   Bug #8533: require() broken in a lot of places - cannot run!
  17.   Bug #8539: Parser error in create_examples.php
  18.   Bug #8746: XML:DocBook generates warning with function/parameters without @param tag
  19.   Bug #8773: PDF Convertor fails due to being unable to find fonts
  20.   Bug #8914: returning non varibale reference ParserData.inc#500
  21.  
  22.   The peardoc2 converter no longer uses funky PHP source highlighting, leaving
  23. that to the peardoc build instead.
  24. ';
  25. $version '1.3.1';
  26. $options array(
  27. 'baseinstalldir' => 'PhpDocumentor',
  28. 'version' => $version,
  29. 'packagedirectory' => $packagedir,
  30. 'filelistgenerator' => 'cvs',
  31. 'notes' => $notes,
  32. 'package' => 'PhpDocumentor',
  33. 'dir_roles' => array(
  34.     'Documentation' => 'doc',
  35.     'Documentation/tests' => 'test',
  36.     'docbuilder' => 'data',
  37.     'HTML_TreeMenu-1.1.2' => 'data',
  38.     'tutorials' => 'doc',
  39.     ),
  40. 'simpleoutput' => true,
  41. 'exceptions' =>
  42.     array(
  43.         'index.html' => 'data',
  44.         'README' => 'doc',
  45.         'ChangeLog' => 'doc',
  46.         'LICENSE' => 'doc',
  47.         'poweredbyphpdoc.gif' => 'data',
  48.         'INSTALL' => 'doc',
  49.         'FAQ' => 'doc',
  50.         'Authors' => 'doc',
  51.         'Release-1.2.0beta1' => 'doc',
  52.         'Release-1.2.0beta2' => 'doc',
  53.         'Release-1.2.0beta3' => 'doc',
  54.         'Release-1.2.0rc1' => 'doc',
  55.         'Release-1.2.0rc2' => 'doc',
  56.         'Release-1.2.0' => 'doc',
  57.         'Release-1.2.1' => 'doc',
  58.         'Release-1.2.2' => 'doc',
  59.         'Release-1.2.3' => 'doc',
  60.         'Release-1.2.3.1' => 'doc',
  61.         'Release-1.3.0' => 'doc',
  62.         'Release-1.3.1' => 'doc',
  63.         'pear-phpdoc' => 'script',
  64.         'pear-phpdoc.bat' => 'script',
  65.         'HTML_TreeMenu-1.1.2/TreeMenu.php' => 'php',
  66.         'phpDocumentor/Smarty-2.6.0/libs/debug.tpl' => 'php',
  67.         'new_phpdoc.php' => 'data',
  68.         'phpdoc.php' => 'data',
  69.         ),
  70. 'ignore' =>
  71.     array('package.xml',
  72.           'package2.xml',
  73.           '*templates/PEAR/*',
  74.           'publicweb-PEAR-1.2.1.patch.txt',
  75.           ),
  76. 'installexceptions' => array('pear-phpdoc' => '/''pear-phpdoc.bat' => '/''scripts/makedoc.sh' => '/'),
  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('stable');
  82. $pfm2->setLicense('LGPL''http://www.opensource.org/licenses/lgpl-license.php');
  83. $pfm2->setNotes($notes);
  84. $pfm2->clearDeps();
  85. $pfm2->setPhpDep('4.2.0');
  86. $pfm2->setPearinstallerDep('1.4.6');
  87. $pfm2->addPackageDepWithChannel('optional''XML_Beautifier''pear.php.net''1.1');
  88. $pfm2->addReplacement('pear-phpdoc''pear-config''@PHP-BIN@''php_bin');
  89. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@PHP-BIN@''php_bin');
  90. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@BIN-DIR@''bin_dir');
  91. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@PEAR-DIR@''php_dir');
  92. $pfm2->addReplacement('pear-phpdoc.bat''pear-config''@DATA-DIR@''data_dir');
  93. $pfm2->addReplacement('docbuilder/includes/utilities.php''pear-config''@DATA-DIR@''data_dir');
  94. $pfm2->addReplacement('docbuilder/builder.php''pear-config''@DATA-DIR@''data_dir');
  95. $pfm2->addReplacement('docbuilder/file_dialog.php''pear-config''@DATA-DIR@''data_dir');
  96. $pfm2->addReplacement('docbuilder/file_dialog.php''pear-config''@WEB-DIR@''data_dir');
  97. $pfm2->addReplacement('docbuilder/actions.php''pear-config''@WEB-DIR@''data_dir');
  98. $pfm2->addReplacement('docbuilder/top.php''pear-config''@DATA-DIR@''data_dir');
  99. $pfm2->addReplacement('docbuilder/config.php''pear-config''@DATA-DIR@''data_dir');
  100. $pfm2->addReplacement('docbuilder/config.php''pear-config''@WEB-DIR@''data_dir');
  101. $pfm2->addReplacement('phpDocumentor/Setup.inc.php''pear-config''@DATA-DIR@''data_dir');
  102. $pfm2->addReplacement('phpDocumentor/Converter.inc''pear-config''@DATA-DIR@''data_dir');
  103. $pfm2->addReplacement('phpDocumentor/common.inc.php''package-info''@VER@''version');
  104. $pfm2->addReplacement('phpDocumentor/common.inc.php''pear-config''@PEAR-DIR@''php_dir');
  105. $pfm2->addReplacement('phpDocumentor/IntermediateParser.inc''package-info''@VER@''version');
  106. $pfm2->addReplacement('phpDocumentor/IntermediateParser.inc''pear-config''@PEAR-DIR@''php_dir');
  107. $pfm2->addReplacement('user/pear-makedocs.ini''pear-config''@PEAR-DIR@''php_dir');
  108. $pfm2->addReplacement('user/pear-makedocs.ini''pear-config''@DOC-DIR@''doc_dir');
  109. $pfm2->addReplacement('user/pear-makedocs.ini''package-info''@VER@''version');
  110. $pfm2->addRole('inc''php');
  111. $pfm2->addRole('sh''script');
  112. $pfm2->addUnixEol('pear-phpdoc');
  113. $pfm2->addUnixEol('phpdoc');
  114. $pfm2->addWindowsEol('pear-phpdoc.bat');
  115. $pfm2->addWindowsEol('phpdoc.bat');
  116. $pfm2->generateContents();
  117. $pfm2->setPackageType('php');
  118. $pfm2->addRelease();
  119. $pfm2->setOsInstallCondition('windows');
  120. // these next two files are only used if the archive is extracted as-is
  121. // without installing via "pear install blah"
  122. $pfm2->addIgnoreToRelease("phpdoc");
  123. $pfm2->addIgnoreToRelease('phpdoc.bat');
  124. $pfm2->addIgnoreToRelease('user/makedocs.ini');
  125. $pfm2->addIgnoreToRelease('scripts/makedoc.sh');
  126. $pfm2->addInstallAs('pear-phpdoc''phpdoc');
  127. $pfm2->addInstallAs('pear-phpdoc.bat''phpdoc.bat');
  128. $pfm2->addInstallAs('user/pear-makedocs.ini''user/makedocs.ini');
  129. $pfm2->addRelease();
  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('pear-phpdoc.bat');
  136. $pfm2->addInstallAs('pear-phpdoc''phpdoc');
  137. $pfm2->addInstallAs('user/pear-makedocs.ini''user/makedocs.ini');
  138. if (isset($_GET['make']|| (isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  139.     $pfm2->writePackageFile();
  140. else {
  141.     $pfm2->debugPackageFile();
  142. }
  143. if (!isset($_GET['make']&& !(isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  144.     echo '<a href="' $_SERVER['PHP_SELF''?make=1">Make this file</a>';
  145. }
  146. ?>

Documentation generated on Tue, 24 Oct 2006 09:22:02 -0500 by phpDocumentor 1.3.1