cvs: peardoc /en/package/pear pear-packagefilemanager.xml /en/package/pear/pear-packagefilemanager constants.xml globals.xml
/en/package/pear/pear-packagefilemanager/pear-packagefilemanager addconfigureoption.xml adddependency.xml addmaintainer.xml addplatformexception.xml
addreplacement.xml addrole.xml debugpackagefile.xml pear_packagefilemanager.xml raiseerror.xml setoptions.xml writepackagefile.xml
/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-cvs dirlist.xml
/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file dirlist.xml getfilelist.xml pear_packagefilemanager_file.xml
| From: | Greg Beaver | Date: | Wed, 13 Aug 2003 18:12:32 +0000 |
| Subject: | cvs: peardoc /en/package/pear pear-packagefilemanager.xml /en/package/pear/pear-packagefilemanager constants.xml globals.xml /en/package/pear/pear-packagefilemanager/pear-packagefilemanager addconfigureoption.xml adddependency.xml addmaintainer.xml addplatformexception.xml addreplacement.xml addrole.xml debugpackagefile.xml pear_packagefilemanager.xml raiseerror.xml setoptions.xml writepackagefile.xml /en/package/pear/pear-packagefilemanager/pear-packagefilemanager-cvs dirlist.xml /en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file dirlist.xml getfilelist.xml pear_packagefilemanager_file.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-1313@lists.php.net to get a copy of this message | ||
cellog Wed Aug 13 14:12:32 2003 EDT
Modified files:
/peardoc/en/package/pear pear-packagefilemanager.xml
/peardoc/en/package/pear/pear-packagefilemanager constants.xml
globals.xml
/peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager
addconfigureoption.xml
adddependency.xml
addmaintainer.xml
addplatformexception.xml
addreplacement.xml
addrole.xml
debugpackagefile.xml
pear_packagefilemanager.xml
raiseerror.xml
setoptions.xml
writepackagefile.xml
/peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-cvs
dirlist.xml
/peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file
dirlist.xml
getfilelist.xml
pear_packagefilemanager_file.xml
Log:
fixing problems Anthony and Allowee found (thanks)
Index: peardoc/en/package/pear/pear-packagefilemanager.xml diff -u peardoc/en/package/pear/pear-packagefilemanager.xml:1.5 peardoc/en/package/pear/pear-packagefilemanager.xml:1.6 --- peardoc/en/package/pear/pear-packagefilemanager.xml:1.5 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager.xml Wed Aug 13 14:12:31 2003 @@ -3,11 +3,18 @@ <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager-summary"> <refnamediv> <refname>Class Summary <function>PEAR_PackageFileManager</function></refname> - <refpurpose>PEAR :: PackageGenerate updates the <filelist></filelist> section of a PEAR package.xml file to reflect the current files in preparation for a release.</refpurpose> + <refpurpose>PEAR :: PackageGenerate updates the <filelist></filelist> +section of a PEAR package.xml file to reflect the current files in +preparation for a release.</refpurpose> </refnamediv> <refsect1> - <title>PEAR :: PackageGenerate updates the <filelist></filelist> section of a PEAR package.xml file to reflect the current files in preparation for a release.</title> - <para>The PEAR_PackageGenerate class uses a plugin system to generate the list of files in a package. This allows both standard recursive directory parsing (plugin type file) and more intelligent options such as the CVS browser PEAR_PackageFileManager_Cvs, which grabs all files in a local CVS checkout to create the list, ignoring any other local files.</para><para>Other options include specifying roles for file extensions (all .php files are role="php", for example), roles for directories (all directories named "tests" are given role="tests" by default), and exceptions. Exceptions are specific pathnames with * and ? wildcards that match a default role, but should have another. For example, perhaps a debug.tpl template would normally be data, but should be included in the docs role. Along these lines, to exclude files entirely, use the ignore option.</para><para>Required options for a release include version, baseinstalldir, state, and packagedirectory (the full path to the local location of the package to create a package.xml file for)</para><para>Example usage: <programlisting role="php-highlighted">1 <?php + <title>PEAR :: PackageGenerate updates the <filelist></filelist> +section of a PEAR package.xml file to reflect the current files in +preparation for a release.</title> + <para>The PEAR_PackageGenerate class uses a plugin system to generate the list of files in a package. This allows both standard recursive directory parsing (plugin type file) and more intelligent options such as the CVS browser PEAR_PackageFileManager_Cvs, which grabs all files in a local CVS checkout to create the list, ignoring any other local files.</para> +<para>Other options include specifying roles for file extensions (all .php files are role="php", for example), roles for directories (all directories named "tests" are given role="tests" by default), and exceptions. Exceptions are specific pathnames with * and ? wildcards that match a default role, but should have another. For example, perhaps a debug.tpl template would normally be data, but should be included in the docs role. Along these lines, to exclude files entirely, use the ignore option.</para> +<para>Required options for a release include version, baseinstalldir, state, and packagedirectory (the full path to the local location of the package to create a package.xml file for)</para> +<para>Example usage: <programlisting role="php-highlighted">1 <?php 2 require_once('PEAR/PackageFileManager.php'); 3 $packagexml = new <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.pear-packagefilemanager">PEAR_PackageFileManager</link>; 4 $e = $packagexml-><link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions">setOptions</link>( @@ -63,6 +70,7 @@ 54 scratch, with the usage of new options package, summary, description, and 55 the use of the method </programlisting></para> + </refsect1> <refsect1> <title>Class Trees for <function>PEAR_PackageFileManager</function></title> @@ -94,6 +102,7 @@ <refsect1> <title>Generate a file list from a CVS checkout</title> <para>Note that this will <emphasis>NOT</emphasis> work on a repository, only on a checked out CVS module</para> + </refsect1> <refsect1> <title>Class Trees for <classname>PEAR_PackageFileManager_CVS</classname></title> @@ -150,6 +159,7 @@ <refsect1> <title>Retrieve the files from a directory listing</title> <para>This class is used to retrieve a raw directory listing. Use the <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs-summary"><classname>PEAR_PackageFileManager_CVS</classname></link> class to only retrieve the contents of a cvs repository when generating the package.xml</para> + </refsect1> <refsect1> <title>Class Trees for <function>PEAR_PackageFileManager_File</function></title> Index: peardoc/en/package/pear/pear-packagefilemanager/constants.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/constants.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/constants.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/constants.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/constants.xml Wed Aug 13 14:12:31 2003 @@ -132,6 +132,11 @@ <entry>42</entry> </row> <row> + <entry>PEAR_PACKAGEFILEMANAGER_PHP_NOT_PACKAGE</entry> + <entry>24</entry> + <entry>56</entry> + </row> + <row> <entry>PEAR_PACKAGEFILEMANAGER_RUN_SETOPTIONS</entry> <entry>13</entry> <entry>45</entry> Index: peardoc/en/package/pear/pear-packagefilemanager/globals.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/globals.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/globals.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/globals.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/globals.xml Wed Aug 13 14:12:31 2003 @@ -80,9 +80,12 @@ 54 'Replacement Type must be one of "%s", was passed "%s"', 55 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_INVALID_ROLE</link> => 56 'Invalid file role passed to addRole, must be one of "%s", was passed "%s"', -57 ),) -</programlisting></entry> - <entry>61</entry> +57 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_PHP_NOT_PACKAGE</link> => +58 'addDependency had PHP as a package, use type="php"', +59 ),) +</programlisting> +</entry> + <entry>62</entry> </row> </tbody> </tgroup> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addconfigureoption.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addconfigureoption.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addconfigureoption.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addconfigureoption.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addconfigureoption.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addconfigureoption"> <refnamediv> <refname><function>PEAR_PackageFileManager::addConfigureOption</function></refname> @@ -7,13 +7,13 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void|PEAR_Error <function>PEAR_PackageFileManager::addConfigureOption</function></funcdef> <paramdef>string <parameter>$name</parameter></paramdef> <paramdef>string <parameter>$prompt</parameter></paramdef> - <paramdef>string <parameter> <optional>$default = null</optional></parameter></paramdef> + <paramdef>string <parameter> <optional>$default = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> @@ -21,6 +21,7 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addconfigureoption.desc"> &title.desc; <para>This option is only useful to PECL projects that are built upon installation</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addconfigureoption.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/adddependency.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/adddependency.xml:1.5 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/adddependency.xml:1.6 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/adddependency.xml:1.5 Wed Aug 13 12:01:05 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/adddependency.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.adddependency"> <refnamediv> <refname><function>PEAR_PackageFileManager::addDependency</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void|PEAR_Error <function>PEAR_PackageFileManager::addDependency</function></funcdef> @@ -15,6 +15,7 @@ <paramdef>string <parameter> <optional>$version = &false;</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$operator = 'ge'</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$type = 'pkg'</optional></parameter></paramdef> + <paramdef>boolean <parameter> <optional>$optional = &false;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> @@ -22,6 +23,7 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.adddependency.desc"> &title.desc; <para>This will overwrite an existing dependency if it is found. In other words, if a dependency on PHP 4.1.0 exists, and addDependency('php', '4.3.0', 'ge', 'php') is called, the existing dependency on PHP 4.1.0 will be overwritten with the new one on PHP 4.3.0</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.adddependency.param"> &title.param; @@ -66,7 +68,9 @@ </term> <listitem> <para> - A specific operator for the version, this can be one of: 'has', 'not', 'lt', 'le', 'eq', 'ne', 'ge', or 'gt' + A specific operator for the version, this can be one of: +'has', 'not', 'lt', 'le', +'eq', 'ne', 'ge', or 'gt' </para> </listitem> </varlistentry> @@ -81,7 +85,24 @@ </term> <listitem> <para> - Dependency type. This can be one of: 'pkg', 'ext', 'php', 'prog', 'os', 'sapi', or 'zend' + Dependency type. This can be one of: 'pkg', 'ext', +'php', 'prog', 'os', 'sapi', or +'zend' + </para> + </listitem> + </varlistentry> + </variablelist> + <variablelist> + <varlistentry> + <term> + + + &type.bool; + <parameter>$optional</parameter> + </term> + <listitem> + <para> + &true; if dependency is optional </para> </listitem> </varlistentry> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addmaintainer.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addmaintainer.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addmaintainer.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addmaintainer.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addmaintainer.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addmaintainer"> <refnamediv> <refname><function>PEAR_PackageFileManager::addMaintainer</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_PackageFileManager::addMaintainer</function></funcdef> @@ -21,7 +21,18 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addmaintainer.desc"> &title.desc; - <para>Every maintainer must have a valid account at pear.php.net. The first parameter is the account name (for instance, cellog is the handle for Greg Beaver at pear.php.net). Every maintainer has one of four possible roles: <itemizedlist><listitem><para>lead: the primary maintainer</para></listitem><listitem><para>developer: an important developer on the project</para></listitem><listitem><para>contributor: self-explanatory</para></listitem><listitem><para>helper: ditto</para></listitem></itemizedlist> Finally, specify the name and email of the maintainer</para> + <para>Every maintainer must have a valid account at pear.php.net. The first parameter is the account name (for instance, cellog is the handle for Greg Beaver at pear.php.net). Every maintainer has one of four possible roles: +<itemizedlist> +<listitem><para>lead: the primary maintainer</para></listitem> + +<listitem><para>developer: an important developer on the project</para></listitem> + +<listitem><para>contributor: self-explanatory</para></listitem> + +<listitem><para>helper: ditto</para></listitem> +</itemizedlist> + Finally, specify the name and email of the maintainer</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addmaintainer.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addplatformexception.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addplatformexception.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addplatformexception.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addplatformexception.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addplatformexception.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addplatformexception"> <refnamediv> <refname><function>PEAR_PackageFileManager::addPlatformException</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_PackageFileManager::addPlatformException</function></funcdef> @@ -19,7 +19,9 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addplatformexception.desc"> &title.desc; - <para>The format of the platform string must be OS-version-cpu-extra if any more specific information is needed, and the OS must be in lower case as in "windows." The match is performed using a regular expression, but uses * and ? wildcards instead of .* and .?. Note that hpux/aix/irix/linux are all exclusive. To select non-windows, use (*ix|*ux)</para><para>This information is based on eyeing the source for OS/Guess.php, so if you are unsure of what to do, read that file.</para> + <para>The format of the platform string must be OS-version-cpu-extra if any more specific information is needed, and the OS must be in lower case as in "windows." The match is performed using a regular expression, but uses * and ? wildcards instead of .* and .?. Note that hpux/aix/irix/linux are all exclusive. To select non-windows, use (*ix|*ux)</para> +<para>This information is based on eyeing the source for OS/Guess.php, so if you are unsure of what to do, read that file.</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addplatformexception.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addreplacement.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addreplacement.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addreplacement.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addreplacement.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addreplacement.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addreplacement"> <refnamediv> <refname><function>PEAR_PackageFileManager::addReplacement</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_PackageFileManager::addReplacement</function></funcdef> @@ -21,7 +21,9 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addreplacement.desc"> &title.desc; - <para>This sets an install-time complex search-and-replace function allowing the setting of platform-specific variables in an installed file.</para><para>if $type is php-const, then $to must be the name of a PHP Constant. If $type is pear-config, then $to must be the name of a PEAR config variable accessible through a PEAR_Config::get() method. If type is package-info, then $to must be the name of a section from the package.xml file used to install this file.</para> + <para>This sets an install-time complex search-and-replace function allowing the setting of platform-specific variables in an installed file.</para> +<para>if $type is php-const, then $to must be the name of a PHP Constant. If $type is pear-config, then $to must be the name of a PEAR config variable accessible through a PEAR_Config::get() method. If type is package-info, then $to must be the name of a section from the package.xml file used to install this file.</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addreplacement.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addrole.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addrole.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addrole.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addrole.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addrole.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addrole"> <refnamediv> <refname><function>PEAR_PackageFileManager::addRole</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_PackageFileManager::addRole</function></funcdef> @@ -19,7 +19,22 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addrole.desc"> &title.desc; - <para>Roles influence both where a file is installed and how it is installed. Files with role="data" are in a completely different directory hierarchy from the program files of role="php"</para><para>In PEAR 1.2b2, these roles are <itemizedlist><listitem><para>php (most common)</para></listitem><listitem><para>data</para></listitem><listitem><para>doc</para></listitem><listitem><para>test</para></listitem><listitem><para>script (gives the file an executable attribute)</para></listitem><listitem><para>src</para></listitem></itemizedlist></para> + <para>Roles influence both where a file is installed and how it is installed. Files with role="data" are in a completely different directory hierarchy from the program files of role="php"</para> +<para>In PEAR 1.2b2, these roles are +<itemizedlist> +<listitem><para>php (most common)</para></listitem> + +<listitem><para>data</para></listitem> + +<listitem><para>doc</para></listitem> + +<listitem><para>test</para></listitem> + +<listitem><para>script (gives the file an executable attribute)</para></listitem> + +<listitem><para>src</para></listitem> +</itemizedlist></para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addrole.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/debugpackagefile.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/debugpackagefile.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/debugpackagefile.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/debugpackagefile.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/debugpackagefile.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.debugpackagefile"> <refnamediv> <refname><function>PEAR_PackageFileManager::debugPackageFile</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_PackageFileManager::debugPackageFile</function></funcdef> @@ -19,6 +19,7 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.debugpackagefile.desc"> &title.desc; <para>This method instructs writePackageFile() to simply print the package.xml to output, either command-line or web-friendly (this is automatic based on the existence of $_SERVER['PATH_TRANSLATED']</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.debugpackagefile.throws"> &title.throws; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/pear_packagefilemanager.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/pear_packagefilemanager.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/pear_packagefilemanager.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/pear_packagefilemanager.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/pear_packagefilemanager.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.pear-packagefilemanager"> <refnamediv> <refname>constructor <function>PEAR_PackageFileManager::PEAR_PackageFileManager</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void constructor <function>PEAR_PackageFileManager::PEAR_PackageFileManager</function></funcdef> @@ -19,6 +19,7 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.pear-packagefilemanager.desc"> &title.desc; <para>The constructor is not used in order to be able to return a PEAR_Error from setOptions</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.pear-packagefilemanager.throws"> &title.throws; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/raiseerror.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/raiseerror.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/raiseerror.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/raiseerror.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/raiseerror.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.raiseerror"> <refnamediv> <refname><function>PEAR_PackageFileManager::raiseError</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>PEAR_Error <function>PEAR_PackageFileManager::raiseError</function></funcdef> @@ -27,6 +27,7 @@ 5 $i1, $i2)); 6 } </programlisting></para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.raiseerror.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/setoptions.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/setoptions.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/setoptions.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/setoptions.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/setoptions.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions"> <refnamediv> <refname><function>PEAR_PackageFileManager::setOptions</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void|PEAR_Error <function>PEAR_PackageFileManager::setOptions</function></funcdef> @@ -19,19 +19,36 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions.desc"> &title.desc; <para>The options array is indexed as follows: <programlisting role="php-highlighted">1 $options = array('option_name' => <optionvalue>); -</programlisting></para><para>The documentation below simplifies this description through the use of option_name without quotes</para><para>Configuration options: <itemizedlist><listitem><para>lang: lang controls the language in which error messages are +</programlisting></para> +<para>The documentation below simplifies this description through the use of option_name without quotes</para> +<para>Configuration options: +<itemizedlist> +<listitem><para>lang: lang controls the language in which error messages are displayed. There are currently only English error messages, - but any contributed will be added over time.<br> - Possible values: en (default)</para></listitem><listitem><para>packagefile: the name of the packagefile, defaults to package.xml</para></listitem><listitem><para>pathtopackagefile: the path to an existing package file to read in, - if different from the packagedirectory</para></listitem><listitem><para>packagedirectory: the path to the base directory of the package. For + but any contributed will be added over time. + + Possible values: en (default)</para></listitem> + +<listitem><para>packagefile: the name of the packagefile, defaults to package.xml</para></listitem> + +<listitem><para>pathtopackagefile: the path to an existing package file to read in, + if different from the packagedirectory</para></listitem> + +<listitem><para>packagedirectory: the path to the base directory of the package. For package PEAR_PackageFileManager, this path is /path/to/pearcvs/pear/PEAR_PackageFileManager where - /path/to/pearcvs is a local path on your hard drive</para></listitem><listitem><para>outputdirectory: the path in which to place the generated package.xml + /path/to/pearcvs is a local path on your hard drive</para></listitem> + +<listitem><para>outputdirectory: the path in which to place the generated package.xml by default, this is ignored, and the package.xml is - created in the packagedirectory</para></listitem><listitem><para>filelistgenerator: the <filelist> section plugin which will be used. + created in the packagedirectory</para></listitem> + +<listitem><para>filelistgenerator: the <filelist> section plugin which will be used. In this release, there are two generator plugins, file and cvs. For details, see the docs for these - plugins</para></listitem><listitem><para>usergeneratordir: For advanced users. If you write your own filelist + plugins</para></listitem> + +<listitem><para>usergeneratordir: For advanced users. If you write your own filelist generator plugin, use this option to tell PEAR_PackageFileManager where to find the file that contains it. If the plugin is named foo, the class @@ -40,66 +57,123 @@ plugin is located in PEAR/PackageFileManager/Foo.php. If you pass /path/to/foo in this option, setOptions will look for PEAR_PackageFileManager_Foo in - /path/to/foo/Foo.php</para></listitem><listitem><para>doctype: Specifies the DTD of the package.xml file. Default is - http://pear.php.net/dtd/package-1.0</para></listitem><listitem><para>pearcommonclass: Specifies the name of the class to instantiate, default + /path/to/foo/Foo.php</para></listitem> + +<listitem><para>doctype: Specifies the DTD of the package.xml file. Default is + http://pear.php.net/dtd/package-1.0</para></listitem> + +<listitem><para>pearcommonclass: Specifies the name of the class to instantiate, default is PEAR_Common, but users can override this with a custom - class that implements PEAR_Common's method interface</para></listitem><listitem><para>changelogoldtonew: True if the ChangeLog should list from oldest entry to - newest. Set to false if you would like new entries first</para></listitem></itemizedlist> package.xml simple options: <itemizedlist><listitem><para>baseinstalldir: The base directory to install this package in. For + class that implements PEAR_Common's method interface</para></listitem> + +<listitem><para>changelogoldtonew: True if the ChangeLog should list from oldest entry to + newest. Set to false if you would like new entries first</para></listitem> +</itemizedlist> + package.xml simple options: +<itemizedlist> +<listitem><para>baseinstalldir: The base directory to install this package in. For package PEAR_PackageFileManager, this is "PEAR", for - package PEAR, this is "/"</para></listitem><listitem><para>license: The license this release is released under. Default is - PHP License if left unspecified</para></listitem><listitem><para>notes: Release notes, any text describing what makes this release unique</para></listitem><listitem><para>changelognotes: notes for the changelog, this should be more detailed than + package PEAR, this is "/"</para></listitem> + +<listitem><para>license: The license this release is released under. Default is + PHP License if left unspecified</para></listitem> + +<listitem><para>notes: Release notes, any text describing what makes this release unique</para></listitem> + +<listitem><para>changelognotes: notes for the changelog, this should be more detailed than the release notes. By default, PEAR_PackageFileManager uses - the notes option for the changelog as well</para></listitem><listitem><para>version: The version number for this release. Remember the convention for + the notes option for the changelog as well</para></listitem> + +<listitem><para>version: The version number for this release. Remember the convention for numbering: initial alpha is between 0 and 1, add b<beta number> for beta as in 1.0b1, the integer portion of the version should specify backwards compatibility, as in 1.1 is backwards compatible with 1.0, but 2.0 is not backwards compatible with 1.10. Also note that 1.10 is a greater release version than 1.1 (think of it as "one point ten" and "one point one"). Bugfix releases should be a third decimal as in - 1.0.1, 1.0.2</para></listitem><listitem><para>package: [optional] Package name. Use this to create a new package.xml, or - overwrite an existing one from another package used as a template</para></listitem><listitem><para>summary: [optional] Summary of package purpose</para></listitem><listitem><para>description: [optional] Description of package purpose. Note that the above + 1.0.1, 1.0.2</para></listitem> + +<listitem><para>package: [optional] Package name. Use this to create a new package.xml, or + overwrite an existing one from another package used as a template</para></listitem> + +<listitem><para>summary: [optional] Summary of package purpose</para></listitem> + +<listitem><para>description: [optional] Description of package purpose. Note that the above three options are not optional when creating a new package.xml - from scratch</para></listitem></itemizedlist><emphasis>WARNING</emphasis>: all complex options that require a file path are case-sensitive</para><para>package.xml complex options: <itemizedlist><listitem><para>ignore: an array of filenames, directory names, or wildcard expressions specifying + from scratch</para></listitem> +</itemizedlist> + <emphasis>WARNING</emphasis>: all complex options that require a file path are case-sensitive</para> +<para>package.xml complex options: +<itemizedlist> +<listitem><para>ignore: an array of filenames, directory names, or wildcard expressions specifying files to exclude entirely from the package.xml. Wildcards are operating system wildcards * and ?. file*foo.php will exclude filefoo.php, fileabrfoo.php and filewho_is_thisfoo.php. file?foo.php will exclude fileafoo.php and will not exclude fileaafoo.php. test/ will exclude all directories and subdirectories of ANY directory named test encountered in directory parsing. *test* will exclude - all files and directories that contain test in their name</para></listitem><listitem><para>roles: this is an array mapping file extension to install role. This + all files and directories that contain test in their name</para></listitem> + +<listitem><para>roles: this is an array mapping file extension to install role. This specifies default behavior that can be overridden by the exceptions - option and dir_roles option. use <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.addrole"><function>addRole</function></link></para></listitem></itemizedlist> to add a new role to the pre-existing array <itemizedlist><listitem><para>dir_roles: this is an array mapping directory name to install role. All + option and dir_roles option. use <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.addrole"><function>addRole</function></link> to add a new + role to the pre-existing array</para></listitem> + +<listitem><para>dir_roles: this is an array mapping directory name to install role. All files in a directory whose name matches the directory will be given the install role specified. Single files can be excluded from this using the exceptions option. The directory should be - a relative path from the baseinstalldir, or "/" for the baseinstalldir</para></listitem><listitem><para>exceptions: specify file role for specific files. This array maps all files - matching the exact name of a file to a role as in "file.ext" => "role"</para></listitem><listitem><para>deps: dependency array. Pass in an empty array to clear all dependencies, and use</para></listitem></itemizedlist> <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.adddependency"><function>addDependency</function></link> to add new ones/replace existing ones <itemizedlist><listitem><para>maintainers: maintainers array. Pass in an empty array to clear all maintainers, and - use <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.addmaintainer"><function>addMaintainer</function></link></para></listitem></itemizedlist> to add a new maintainer/replace existing maintainer <itemizedlist><listitem><para>installexceptions: array mapping of specific filenames to baseinstalldir values. Use + a relative path from the baseinstalldir, or "/" for the baseinstalldir</para></listitem> + +<listitem><para>exceptions: specify file role for specific files. This array maps all files + matching the exact name of a file to a role as in "file.ext" => "role"</para></listitem> + +<listitem><para>deps: dependency array. Pass in an empty array to clear all dependencies, and use + <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.adddependency"><function>addDependency</function></link> to add new ones/replace existing ones</para></listitem> + +<listitem><para>maintainers: maintainers array. Pass in an empty array to clear all maintainers, and + use <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.addmaintainer"><function>addMaintainer</function></link> to add a new maintainer/replace existing maintainer</para></listitem> + +<listitem><para>installexceptions: array mapping of specific filenames to baseinstalldir values. Use this to force the installation of a file into another directory, such as forcing a script to be in the root scripts directory so that it will be in the path. The filename must be a relative path to the - packagedirectory</para></listitem><listitem><para>platformexceptions: array mapping of specific filenames to the platform they should be + packagedirectory</para></listitem> + +<listitem><para>platformexceptions: array mapping of specific filenames to the platform they should be installed on. Use this to specify unix-only files or windows-only files. The format of the platform string must be OS-version-cpu-extra if any more specific information is needed, and the OS must be in lower case as in "windows." The match is performed using a regular expression, but uses * and ? wildcards instead of .* and .?. Note that hpux/aix/irix/linux are all - exclusive. To select non-windows, use (*ix|*ux)</para></listitem><listitem><para>installas: array mapping of specific filenames to the filename they should be installed as. + exclusive. To select non-windows, use (*ix|*ux)</para></listitem> + +<listitem><para>scriptphaseexceptions: array mapping of scripts to their install phase. This can be + one of: pre-install, post-install, pre-uninstall, post-uninstall, + pre-build, post-build, pre-setup, or post-setup</para></listitem> + +<listitem><para>installas: array mapping of specific filenames to the filename they should be installed as. Use this to specify new filenames for files that should be installed. This will often be used in conjunction with platformexceptions if there are two files for - different OSes that must have the same name when installed.</para></listitem><listitem><para>replacements: array mapping of specific filenames to complex text search-and-replace that + different OSes that must have the same name when installed.</para></listitem> + +<listitem><para>replacements: array mapping of specific filenames to complex text search-and-replace that should be performed upon install. The format is: - <pre> - filename => array('type' => php-const|pear-config|package-info - 'from' => text in file - 'to' => name of variable) - </pre> + <![CDATA[ + filename => array('type' => php-const|pear-config|package-info + 'from' => text in file + 'to' => name of variable) + ]]> if type is php-const, then 'to' must be the name of a PHP Constant. If type is pear-config, then 'to' must be the name of a PEAR config variable accessible through a PEAR_Config class->get() method. If type is package-info, then 'to' must be the name of a section from - the package.xml file used to install this file.</para></listitem><listitem><para>configure_options: array specifies build options for PECL packages (you should probably - use PECL_Gen instead, but it's here for completeness)</para></listitem></itemizedlist></para> + the package.xml file used to install this file.</para></listitem> + +<listitem><para>configure_options: array specifies build options for PECL packages (you should probably + use PECL_Gen instead, but it's here for completeness)</para></listitem> +</itemizedlist></para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/writepackagefile.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/writepackagefile.xml:1.5 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/writepackagefile.xml:1.6 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/writepackagefile.xml:1.5 Wed Aug 13 12:01:05 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/writepackagefile.xml Wed Aug 13 14:12:31 2003 @@ -1,17 +1,18 @@ -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.writepackagefile"> <refnamediv> <refname><function>PEAR_PackageFileManager::writePackageFile</function></refname> - <refpurpose>Writes the package.xml file out with the newly created <release></release> tag</refpurpose> + <refpurpose>Writes the package.xml file out with the newly created +<release></release> tag</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void|PEAR_Error <function>PEAR_PackageFileManager::writePackageFile</function></funcdef> - <paramdef>boolean <parameter> <optional>$debuginterface = null</optional></parameter></paramdef> + <paramdef>boolean <parameter> <optional>$debuginterface = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> @@ -19,6 +20,7 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.writepackagefile.desc"> &title.desc; <para>ALWAYS use <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.debugpackagefile"><function>debugPackageFile</function></link> to verify that output is correct before overwriting your package.xml</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.writepackagefile.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-cvs/dirlist.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-cvs/dirlist.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-cvs/dirlist.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-cvs/dirlist.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-cvs/dirlist.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs.dirlist"> <refnamediv> <refname><function>PEAR_PackageFileManager_CVS::dirList</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager/Cvs.php'; + require_once 'PackageFileManager/Cvs.php'; </funcsynopsisinfo> <funcprototype> <funcdef>array <function>PEAR_PackageFileManager_CVS::dirList</function></funcdef> @@ -19,6 +19,7 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs.dirlist.desc"> &title.desc; <para>This function is like <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.dirlist"><function>parent::dirList</function></link> except that instead of retrieving a regular filelist, it first retrieves a listing of all the CVS/Entries files in $directory and all of the subdirectories. Then, it reads the Entries file, and creates a listing of files that are a part of the CVS repository. No check is made to see if they have been modified, but newly added or removed files are ignored.</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs.dirlist.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/dirlist.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/dirlist.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/dirlist.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/dirlist.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/dirlist.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.dirlist"> <refnamediv> <refname><function>PEAR_PackageFileManager_File::dirList</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager/File.php'; + require_once 'PackageFileManager/File.php'; </funcsynopsisinfo> <funcprototype> <funcdef>array <function>PEAR_PackageFileManager_File::dirList</function></funcdef> @@ -19,6 +19,7 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.dirlist.desc"> &title.desc; <para>The return format is an array of full paths to files</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.dirlist.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/getfilelist.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/getfilelist.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/getfilelist.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/getfilelist.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/getfilelist.xml Wed Aug 13 14:12:31 2003 @@ -1,13 +1,14 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.getfilelist"> <refnamediv> <refname><function>PEAR_PackageFileManager_File::getFileList</function></refname> - <refpurpose>Generate the <filelist></filelist> section of the package file.</refpurpose> + <refpurpose>Generate the <filelist></filelist> section of the package +file.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager/File.php'; + require_once 'PackageFileManager/File.php'; </funcsynopsisinfo> <funcprototype> <funcdef>array <function>PEAR_PackageFileManager_File::getFileList</function></funcdef> @@ -19,6 +20,7 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.getfilelist.desc"> &title.desc; <para>This function performs the backend generation of the array containing all files in this package</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.getfilelist.throws"> &title.throws; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/pear_packagefilemanager_file.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/pear_packagefilemanager_file.xml:1.5 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/pear_packagefilemanager_file.xml:1.6 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/pear_packagefilemanager_file.xml:1.5 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/pear_packagefilemanager_file.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.pear-packagefilemanager-file"> <refnamediv> <refname>constructor <function>PEAR_PackageFileManager_File::PEAR_PackageFileManager_File</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager/File.php'; + require_once 'PackageFileManager/File.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void constructor <function>PEAR_PackageFileManager_File::PEAR_PackageFileManager_File</function></funcdef> @@ -20,6 +20,7 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.pear-packagefilemanager-file.desc"> &title.desc; <para>'ignore' is the only option that this class uses. See <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions"><function>PEAR_PackageFileManager::setOptions</function></link> for more information and formatting of this option</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.pear-packagefilemanager-file.param"> &title.param; @@ -29,7 +30,7 @@ <term> <type>PEAR_PackageFileManager</type> - <parameter>&$parent</parameter> + <parameter>&$parent</parameter> </term> <listitem> <para>
Index: peardoc/en/package/pear/pear-packagefilemanager.xml diff -u peardoc/en/package/pear/pear-packagefilemanager.xml:1.5 peardoc/en/package/pear/pear-packagefilemanager.xml:1.6 --- peardoc/en/package/pear/pear-packagefilemanager.xml:1.5 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager.xml Wed Aug 13 14:12:31 2003 @@ -3,11 +3,18 @@ <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager-summary"> <refnamediv> <refname>Class Summary <function>PEAR_PackageFileManager</function></refname> - <refpurpose>PEAR :: PackageGenerate updates the <filelist></filelist> section of a PEAR package.xml file to reflect the current files in preparation for a release.</refpurpose> + <refpurpose>PEAR :: PackageGenerate updates the <filelist></filelist> +section of a PEAR package.xml file to reflect the current files in +preparation for a release.</refpurpose> </refnamediv> <refsect1> - <title>PEAR :: PackageGenerate updates the <filelist></filelist> section of a PEAR package.xml file to reflect the current files in preparation for a release.</title> - <para>The PEAR_PackageGenerate class uses a plugin system to generate the list of files in a package. This allows both standard recursive directory parsing (plugin type file) and more intelligent options such as the CVS browser PEAR_PackageFileManager_Cvs, which grabs all files in a local CVS checkout to create the list, ignoring any other local files.</para><para>Other options include specifying roles for file extensions (all .php files are role="php", for example), roles for directories (all directories named "tests" are given role="tests" by default), and exceptions. Exceptions are specific pathnames with * and ? wildcards that match a default role, but should have another. For example, perhaps a debug.tpl template would normally be data, but should be included in the docs role. Along these lines, to exclude files entirely, use the ignore option.</para><para>Required options for a release include version, baseinstalldir, state, and packagedirectory (the full path to the local location of the package to create a package.xml file for)</para><para>Example usage: <programlisting role="php-highlighted">1 <?php + <title>PEAR :: PackageGenerate updates the <filelist></filelist> +section of a PEAR package.xml file to reflect the current files in +preparation for a release.</title> + <para>The PEAR_PackageGenerate class uses a plugin system to generate the list of files in a package. This allows both standard recursive directory parsing (plugin type file) and more intelligent options such as the CVS browser PEAR_PackageFileManager_Cvs, which grabs all files in a local CVS checkout to create the list, ignoring any other local files.</para> +<para>Other options include specifying roles for file extensions (all .php files are role="php", for example), roles for directories (all directories named "tests" are given role="tests" by default), and exceptions. Exceptions are specific pathnames with * and ? wildcards that match a default role, but should have another. For example, perhaps a debug.tpl template would normally be data, but should be included in the docs role. Along these lines, to exclude files entirely, use the ignore option.</para> +<para>Required options for a release include version, baseinstalldir, state, and packagedirectory (the full path to the local location of the package to create a package.xml file for)</para> +<para>Example usage: <programlisting role="php-highlighted">1 <?php 2 require_once('PEAR/PackageFileManager.php'); 3 $packagexml = new <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.pear-packagefilemanager">PEAR_PackageFileManager</link>; 4 $e = $packagexml-><link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions">setOptions</link>( @@ -63,6 +70,7 @@ 54 scratch, with the usage of new options package, summary, description, and 55 the use of the method </programlisting></para> + </refsect1> <refsect1> <title>Class Trees for <function>PEAR_PackageFileManager</function></title> @@ -94,6 +102,7 @@ <refsect1> <title>Generate a file list from a CVS checkout</title> <para>Note that this will <emphasis>NOT</emphasis> work on a repository, only on a checked out CVS module</para> + </refsect1> <refsect1> <title>Class Trees for <classname>PEAR_PackageFileManager_CVS</classname></title> @@ -150,6 +159,7 @@ <refsect1> <title>Retrieve the files from a directory listing</title> <para>This class is used to retrieve a raw directory listing. Use the <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs-summary"><classname>PEAR_PackageFileManager_CVS</classname></link> class to only retrieve the contents of a cvs repository when generating the package.xml</para> + </refsect1> <refsect1> <title>Class Trees for <function>PEAR_PackageFileManager_File</function></title> Index: peardoc/en/package/pear/pear-packagefilemanager/constants.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/constants.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/constants.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/constants.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/constants.xml Wed Aug 13 14:12:31 2003 @@ -132,6 +132,11 @@ <entry>42</entry> </row> <row> + <entry>PEAR_PACKAGEFILEMANAGER_PHP_NOT_PACKAGE</entry> + <entry>24</entry> + <entry>56</entry> + </row> + <row> <entry>PEAR_PACKAGEFILEMANAGER_RUN_SETOPTIONS</entry> <entry>13</entry> <entry>45</entry> Index: peardoc/en/package/pear/pear-packagefilemanager/globals.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/globals.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/globals.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/globals.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/globals.xml Wed Aug 13 14:12:31 2003 @@ -80,9 +80,12 @@ 54 'Replacement Type must be one of "%s", was passed "%s"', 55 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_INVALID_ROLE</link> => 56 'Invalid file role passed to addRole, must be one of "%s", was passed "%s"', -57 ),) -</programlisting></entry> - <entry>61</entry> +57 <link linkend="package.pear.pear-packagefilemanager.constants.details.packagefilemanager---php">PEAR_PACKAGEFILEMANAGER_PHP_NOT_PACKAGE</link> => +58 'addDependency had PHP as a package, use type="php"', +59 ),) +</programlisting> +</entry> + <entry>62</entry> </row> </tbody> </tgroup> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addconfigureoption.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addconfigureoption.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addconfigureoption.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addconfigureoption.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addconfigureoption.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addconfigureoption"> <refnamediv> <refname><function>PEAR_PackageFileManager::addConfigureOption</function></refname> @@ -7,13 +7,13 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void|PEAR_Error <function>PEAR_PackageFileManager::addConfigureOption</function></funcdef> <paramdef>string <parameter>$name</parameter></paramdef> <paramdef>string <parameter>$prompt</parameter></paramdef> - <paramdef>string <parameter> <optional>$default = null</optional></parameter></paramdef> + <paramdef>string <parameter> <optional>$default = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> @@ -21,6 +21,7 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addconfigureoption.desc"> &title.desc; <para>This option is only useful to PECL projects that are built upon installation</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addconfigureoption.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/adddependency.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/adddependency.xml:1.5 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/adddependency.xml:1.6 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/adddependency.xml:1.5 Wed Aug 13 12:01:05 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/adddependency.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.adddependency"> <refnamediv> <refname><function>PEAR_PackageFileManager::addDependency</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void|PEAR_Error <function>PEAR_PackageFileManager::addDependency</function></funcdef> @@ -15,6 +15,7 @@ <paramdef>string <parameter> <optional>$version = &false;</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$operator = 'ge'</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$type = 'pkg'</optional></parameter></paramdef> + <paramdef>boolean <parameter> <optional>$optional = &false;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> @@ -22,6 +23,7 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.adddependency.desc"> &title.desc; <para>This will overwrite an existing dependency if it is found. In other words, if a dependency on PHP 4.1.0 exists, and addDependency('php', '4.3.0', 'ge', 'php') is called, the existing dependency on PHP 4.1.0 will be overwritten with the new one on PHP 4.3.0</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.adddependency.param"> &title.param; @@ -66,7 +68,9 @@ </term> <listitem> <para> - A specific operator for the version, this can be one of: 'has', 'not', 'lt', 'le', 'eq', 'ne', 'ge', or 'gt' + A specific operator for the version, this can be one of: +'has', 'not', 'lt', 'le', +'eq', 'ne', 'ge', or 'gt' </para> </listitem> </varlistentry> @@ -81,7 +85,24 @@ </term> <listitem> <para> - Dependency type. This can be one of: 'pkg', 'ext', 'php', 'prog', 'os', 'sapi', or 'zend' + Dependency type. This can be one of: 'pkg', 'ext', +'php', 'prog', 'os', 'sapi', or +'zend' + </para> + </listitem> + </varlistentry> + </variablelist> + <variablelist> + <varlistentry> + <term> + + + &type.bool; + <parameter>$optional</parameter> + </term> + <listitem> + <para> + &true; if dependency is optional </para> </listitem> </varlistentry> Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addmaintainer.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addmaintainer.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addmaintainer.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addmaintainer.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addmaintainer.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addmaintainer"> <refnamediv> <refname><function>PEAR_PackageFileManager::addMaintainer</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_PackageFileManager::addMaintainer</function></funcdef> @@ -21,7 +21,18 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addmaintainer.desc"> &title.desc; - <para>Every maintainer must have a valid account at pear.php.net. The first parameter is the account name (for instance, cellog is the handle for Greg Beaver at pear.php.net). Every maintainer has one of four possible roles: <itemizedlist><listitem><para>lead: the primary maintainer</para></listitem><listitem><para>developer: an important developer on the project</para></listitem><listitem><para>contributor: self-explanatory</para></listitem><listitem><para>helper: ditto</para></listitem></itemizedlist> Finally, specify the name and email of the maintainer</para> + <para>Every maintainer must have a valid account at pear.php.net. The first parameter is the account name (for instance, cellog is the handle for Greg Beaver at pear.php.net). Every maintainer has one of four possible roles: +<itemizedlist> +<listitem><para>lead: the primary maintainer</para></listitem> + +<listitem><para>developer: an important developer on the project</para></listitem> + +<listitem><para>contributor: self-explanatory</para></listitem> + +<listitem><para>helper: ditto</para></listitem> +</itemizedlist> + Finally, specify the name and email of the maintainer</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addmaintainer.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addplatformexception.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addplatformexception.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addplatformexception.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addplatformexception.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addplatformexception.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addplatformexception"> <refnamediv> <refname><function>PEAR_PackageFileManager::addPlatformException</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_PackageFileManager::addPlatformException</function></funcdef> @@ -19,7 +19,9 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addplatformexception.desc"> &title.desc; - <para>The format of the platform string must be OS-version-cpu-extra if any more specific information is needed, and the OS must be in lower case as in "windows." The match is performed using a regular expression, but uses * and ? wildcards instead of .* and .?. Note that hpux/aix/irix/linux are all exclusive. To select non-windows, use (*ix|*ux)</para><para>This information is based on eyeing the source for OS/Guess.php, so if you are unsure of what to do, read that file.</para> + <para>The format of the platform string must be OS-version-cpu-extra if any more specific information is needed, and the OS must be in lower case as in "windows." The match is performed using a regular expression, but uses * and ? wildcards instead of .* and .?. Note that hpux/aix/irix/linux are all exclusive. To select non-windows, use (*ix|*ux)</para> +<para>This information is based on eyeing the source for OS/Guess.php, so if you are unsure of what to do, read that file.</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addplatformexception.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addreplacement.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addreplacement.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addreplacement.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addreplacement.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addreplacement.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addreplacement"> <refnamediv> <refname><function>PEAR_PackageFileManager::addReplacement</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_PackageFileManager::addReplacement</function></funcdef> @@ -21,7 +21,9 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addreplacement.desc"> &title.desc; - <para>This sets an install-time complex search-and-replace function allowing the setting of platform-specific variables in an installed file.</para><para>if $type is php-const, then $to must be the name of a PHP Constant. If $type is pear-config, then $to must be the name of a PEAR config variable accessible through a PEAR_Config::get() method. If type is package-info, then $to must be the name of a section from the package.xml file used to install this file.</para> + <para>This sets an install-time complex search-and-replace function allowing the setting of platform-specific variables in an installed file.</para> +<para>if $type is php-const, then $to must be the name of a PHP Constant. If $type is pear-config, then $to must be the name of a PEAR config variable accessible through a PEAR_Config::get() method. If type is package-info, then $to must be the name of a section from the package.xml file used to install this file.</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addreplacement.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addrole.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addrole.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addrole.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addrole.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/addrole.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addrole"> <refnamediv> <refname><function>PEAR_PackageFileManager::addRole</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_PackageFileManager::addRole</function></funcdef> @@ -19,7 +19,22 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addrole.desc"> &title.desc; - <para>Roles influence both where a file is installed and how it is installed. Files with role="data" are in a completely different directory hierarchy from the program files of role="php"</para><para>In PEAR 1.2b2, these roles are <itemizedlist><listitem><para>php (most common)</para></listitem><listitem><para>data</para></listitem><listitem><para>doc</para></listitem><listitem><para>test</para></listitem><listitem><para>script (gives the file an executable attribute)</para></listitem><listitem><para>src</para></listitem></itemizedlist></para> + <para>Roles influence both where a file is installed and how it is installed. Files with role="data" are in a completely different directory hierarchy from the program files of role="php"</para> +<para>In PEAR 1.2b2, these roles are +<itemizedlist> +<listitem><para>php (most common)</para></listitem> + +<listitem><para>data</para></listitem> + +<listitem><para>doc</para></listitem> + +<listitem><para>test</para></listitem> + +<listitem><para>script (gives the file an executable attribute)</para></listitem> + +<listitem><para>src</para></listitem> +</itemizedlist></para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.addrole.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/debugpackagefile.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/debugpackagefile.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/debugpackagefile.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/debugpackagefile.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/debugpackagefile.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.debugpackagefile"> <refnamediv> <refname><function>PEAR_PackageFileManager::debugPackageFile</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>PEAR_PackageFileManager::debugPackageFile</function></funcdef> @@ -19,6 +19,7 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.debugpackagefile.desc"> &title.desc; <para>This method instructs writePackageFile() to simply print the package.xml to output, either command-line or web-friendly (this is automatic based on the existence of $_SERVER['PATH_TRANSLATED']</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.debugpackagefile.throws"> &title.throws; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/pear_packagefilemanager.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/pear_packagefilemanager.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/pear_packagefilemanager.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/pear_packagefilemanager.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/pear_packagefilemanager.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.pear-packagefilemanager"> <refnamediv> <refname>constructor <function>PEAR_PackageFileManager::PEAR_PackageFileManager</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void constructor <function>PEAR_PackageFileManager::PEAR_PackageFileManager</function></funcdef> @@ -19,6 +19,7 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.pear-packagefilemanager.desc"> &title.desc; <para>The constructor is not used in order to be able to return a PEAR_Error from setOptions</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.pear-packagefilemanager.throws"> &title.throws; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/raiseerror.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/raiseerror.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/raiseerror.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/raiseerror.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/raiseerror.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.raiseerror"> <refnamediv> <refname><function>PEAR_PackageFileManager::raiseError</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>PEAR_Error <function>PEAR_PackageFileManager::raiseError</function></funcdef> @@ -27,6 +27,7 @@ 5 $i1, $i2)); 6 } </programlisting></para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.raiseerror.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/setoptions.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/setoptions.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/setoptions.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/setoptions.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/setoptions.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions"> <refnamediv> <refname><function>PEAR_PackageFileManager::setOptions</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void|PEAR_Error <function>PEAR_PackageFileManager::setOptions</function></funcdef> @@ -19,19 +19,36 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions.desc"> &title.desc; <para>The options array is indexed as follows: <programlisting role="php-highlighted">1 $options = array('option_name' => <optionvalue>); -</programlisting></para><para>The documentation below simplifies this description through the use of option_name without quotes</para><para>Configuration options: <itemizedlist><listitem><para>lang: lang controls the language in which error messages are +</programlisting></para> +<para>The documentation below simplifies this description through the use of option_name without quotes</para> +<para>Configuration options: +<itemizedlist> +<listitem><para>lang: lang controls the language in which error messages are displayed. There are currently only English error messages, - but any contributed will be added over time.<br> - Possible values: en (default)</para></listitem><listitem><para>packagefile: the name of the packagefile, defaults to package.xml</para></listitem><listitem><para>pathtopackagefile: the path to an existing package file to read in, - if different from the packagedirectory</para></listitem><listitem><para>packagedirectory: the path to the base directory of the package. For + but any contributed will be added over time. + + Possible values: en (default)</para></listitem> + +<listitem><para>packagefile: the name of the packagefile, defaults to package.xml</para></listitem> + +<listitem><para>pathtopackagefile: the path to an existing package file to read in, + if different from the packagedirectory</para></listitem> + +<listitem><para>packagedirectory: the path to the base directory of the package. For package PEAR_PackageFileManager, this path is /path/to/pearcvs/pear/PEAR_PackageFileManager where - /path/to/pearcvs is a local path on your hard drive</para></listitem><listitem><para>outputdirectory: the path in which to place the generated package.xml + /path/to/pearcvs is a local path on your hard drive</para></listitem> + +<listitem><para>outputdirectory: the path in which to place the generated package.xml by default, this is ignored, and the package.xml is - created in the packagedirectory</para></listitem><listitem><para>filelistgenerator: the <filelist> section plugin which will be used. + created in the packagedirectory</para></listitem> + +<listitem><para>filelistgenerator: the <filelist> section plugin which will be used. In this release, there are two generator plugins, file and cvs. For details, see the docs for these - plugins</para></listitem><listitem><para>usergeneratordir: For advanced users. If you write your own filelist + plugins</para></listitem> + +<listitem><para>usergeneratordir: For advanced users. If you write your own filelist generator plugin, use this option to tell PEAR_PackageFileManager where to find the file that contains it. If the plugin is named foo, the class @@ -40,66 +57,123 @@ plugin is located in PEAR/PackageFileManager/Foo.php. If you pass /path/to/foo in this option, setOptions will look for PEAR_PackageFileManager_Foo in - /path/to/foo/Foo.php</para></listitem><listitem><para>doctype: Specifies the DTD of the package.xml file. Default is - http://pear.php.net/dtd/package-1.0</para></listitem><listitem><para>pearcommonclass: Specifies the name of the class to instantiate, default + /path/to/foo/Foo.php</para></listitem> + +<listitem><para>doctype: Specifies the DTD of the package.xml file. Default is + http://pear.php.net/dtd/package-1.0</para></listitem> + +<listitem><para>pearcommonclass: Specifies the name of the class to instantiate, default is PEAR_Common, but users can override this with a custom - class that implements PEAR_Common's method interface</para></listitem><listitem><para>changelogoldtonew: True if the ChangeLog should list from oldest entry to - newest. Set to false if you would like new entries first</para></listitem></itemizedlist> package.xml simple options: <itemizedlist><listitem><para>baseinstalldir: The base directory to install this package in. For + class that implements PEAR_Common's method interface</para></listitem> + +<listitem><para>changelogoldtonew: True if the ChangeLog should list from oldest entry to + newest. Set to false if you would like new entries first</para></listitem> +</itemizedlist> + package.xml simple options: +<itemizedlist> +<listitem><para>baseinstalldir: The base directory to install this package in. For package PEAR_PackageFileManager, this is "PEAR", for - package PEAR, this is "/"</para></listitem><listitem><para>license: The license this release is released under. Default is - PHP License if left unspecified</para></listitem><listitem><para>notes: Release notes, any text describing what makes this release unique</para></listitem><listitem><para>changelognotes: notes for the changelog, this should be more detailed than + package PEAR, this is "/"</para></listitem> + +<listitem><para>license: The license this release is released under. Default is + PHP License if left unspecified</para></listitem> + +<listitem><para>notes: Release notes, any text describing what makes this release unique</para></listitem> + +<listitem><para>changelognotes: notes for the changelog, this should be more detailed than the release notes. By default, PEAR_PackageFileManager uses - the notes option for the changelog as well</para></listitem><listitem><para>version: The version number for this release. Remember the convention for + the notes option for the changelog as well</para></listitem> + +<listitem><para>version: The version number for this release. Remember the convention for numbering: initial alpha is between 0 and 1, add b<beta number> for beta as in 1.0b1, the integer portion of the version should specify backwards compatibility, as in 1.1 is backwards compatible with 1.0, but 2.0 is not backwards compatible with 1.10. Also note that 1.10 is a greater release version than 1.1 (think of it as "one point ten" and "one point one"). Bugfix releases should be a third decimal as in - 1.0.1, 1.0.2</para></listitem><listitem><para>package: [optional] Package name. Use this to create a new package.xml, or - overwrite an existing one from another package used as a template</para></listitem><listitem><para>summary: [optional] Summary of package purpose</para></listitem><listitem><para>description: [optional] Description of package purpose. Note that the above + 1.0.1, 1.0.2</para></listitem> + +<listitem><para>package: [optional] Package name. Use this to create a new package.xml, or + overwrite an existing one from another package used as a template</para></listitem> + +<listitem><para>summary: [optional] Summary of package purpose</para></listitem> + +<listitem><para>description: [optional] Description of package purpose. Note that the above three options are not optional when creating a new package.xml - from scratch</para></listitem></itemizedlist><emphasis>WARNING</emphasis>: all complex options that require a file path are case-sensitive</para><para>package.xml complex options: <itemizedlist><listitem><para>ignore: an array of filenames, directory names, or wildcard expressions specifying + from scratch</para></listitem> +</itemizedlist> + <emphasis>WARNING</emphasis>: all complex options that require a file path are case-sensitive</para> +<para>package.xml complex options: +<itemizedlist> +<listitem><para>ignore: an array of filenames, directory names, or wildcard expressions specifying files to exclude entirely from the package.xml. Wildcards are operating system wildcards * and ?. file*foo.php will exclude filefoo.php, fileabrfoo.php and filewho_is_thisfoo.php. file?foo.php will exclude fileafoo.php and will not exclude fileaafoo.php. test/ will exclude all directories and subdirectories of ANY directory named test encountered in directory parsing. *test* will exclude - all files and directories that contain test in their name</para></listitem><listitem><para>roles: this is an array mapping file extension to install role. This + all files and directories that contain test in their name</para></listitem> + +<listitem><para>roles: this is an array mapping file extension to install role. This specifies default behavior that can be overridden by the exceptions - option and dir_roles option. use <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.addrole"><function>addRole</function></link></para></listitem></itemizedlist> to add a new role to the pre-existing array <itemizedlist><listitem><para>dir_roles: this is an array mapping directory name to install role. All + option and dir_roles option. use <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.addrole"><function>addRole</function></link> to add a new + role to the pre-existing array</para></listitem> + +<listitem><para>dir_roles: this is an array mapping directory name to install role. All files in a directory whose name matches the directory will be given the install role specified. Single files can be excluded from this using the exceptions option. The directory should be - a relative path from the baseinstalldir, or "/" for the baseinstalldir</para></listitem><listitem><para>exceptions: specify file role for specific files. This array maps all files - matching the exact name of a file to a role as in "file.ext" => "role"</para></listitem><listitem><para>deps: dependency array. Pass in an empty array to clear all dependencies, and use</para></listitem></itemizedlist> <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.adddependency"><function>addDependency</function></link> to add new ones/replace existing ones <itemizedlist><listitem><para>maintainers: maintainers array. Pass in an empty array to clear all maintainers, and - use <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.addmaintainer"><function>addMaintainer</function></link></para></listitem></itemizedlist> to add a new maintainer/replace existing maintainer <itemizedlist><listitem><para>installexceptions: array mapping of specific filenames to baseinstalldir values. Use + a relative path from the baseinstalldir, or "/" for the baseinstalldir</para></listitem> + +<listitem><para>exceptions: specify file role for specific files. This array maps all files + matching the exact name of a file to a role as in "file.ext" => "role"</para></listitem> + +<listitem><para>deps: dependency array. Pass in an empty array to clear all dependencies, and use + <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.adddependency"><function>addDependency</function></link> to add new ones/replace existing ones</para></listitem> + +<listitem><para>maintainers: maintainers array. Pass in an empty array to clear all maintainers, and + use <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.addmaintainer"><function>addMaintainer</function></link> to add a new maintainer/replace existing maintainer</para></listitem> + +<listitem><para>installexceptions: array mapping of specific filenames to baseinstalldir values. Use this to force the installation of a file into another directory, such as forcing a script to be in the root scripts directory so that it will be in the path. The filename must be a relative path to the - packagedirectory</para></listitem><listitem><para>platformexceptions: array mapping of specific filenames to the platform they should be + packagedirectory</para></listitem> + +<listitem><para>platformexceptions: array mapping of specific filenames to the platform they should be installed on. Use this to specify unix-only files or windows-only files. The format of the platform string must be OS-version-cpu-extra if any more specific information is needed, and the OS must be in lower case as in "windows." The match is performed using a regular expression, but uses * and ? wildcards instead of .* and .?. Note that hpux/aix/irix/linux are all - exclusive. To select non-windows, use (*ix|*ux)</para></listitem><listitem><para>installas: array mapping of specific filenames to the filename they should be installed as. + exclusive. To select non-windows, use (*ix|*ux)</para></listitem> + +<listitem><para>scriptphaseexceptions: array mapping of scripts to their install phase. This can be + one of: pre-install, post-install, pre-uninstall, post-uninstall, + pre-build, post-build, pre-setup, or post-setup</para></listitem> + +<listitem><para>installas: array mapping of specific filenames to the filename they should be installed as. Use this to specify new filenames for files that should be installed. This will often be used in conjunction with platformexceptions if there are two files for - different OSes that must have the same name when installed.</para></listitem><listitem><para>replacements: array mapping of specific filenames to complex text search-and-replace that + different OSes that must have the same name when installed.</para></listitem> + +<listitem><para>replacements: array mapping of specific filenames to complex text search-and-replace that should be performed upon install. The format is: - <pre> - filename => array('type' => php-const|pear-config|package-info - 'from' => text in file - 'to' => name of variable) - </pre> + <![CDATA[ + filename => array('type' => php-const|pear-config|package-info + 'from' => text in file + 'to' => name of variable) + ]]> if type is php-const, then 'to' must be the name of a PHP Constant. If type is pear-config, then 'to' must be the name of a PEAR config variable accessible through a PEAR_Config class->get() method. If type is package-info, then 'to' must be the name of a section from - the package.xml file used to install this file.</para></listitem><listitem><para>configure_options: array specifies build options for PECL packages (you should probably - use PECL_Gen instead, but it's here for completeness)</para></listitem></itemizedlist></para> + the package.xml file used to install this file.</para></listitem> + +<listitem><para>configure_options: array specifies build options for PECL packages (you should probably + use PECL_Gen instead, but it's here for completeness)</para></listitem> +</itemizedlist></para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/writepackagefile.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/writepackagefile.xml:1.5 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/writepackagefile.xml:1.6 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/writepackagefile.xml:1.5 Wed Aug 13 12:01:05 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager/writepackagefile.xml Wed Aug 13 14:12:31 2003 @@ -1,17 +1,18 @@ -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager.writepackagefile"> <refnamediv> <refname><function>PEAR_PackageFileManager::writePackageFile</function></refname> - <refpurpose>Writes the package.xml file out with the newly created <release></release> tag</refpurpose> + <refpurpose>Writes the package.xml file out with the newly created +<release></release> tag</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager.php'; + require_once 'PackageFileManager.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void|PEAR_Error <function>PEAR_PackageFileManager::writePackageFile</function></funcdef> - <paramdef>boolean <parameter> <optional>$debuginterface = null</optional></parameter></paramdef> + <paramdef>boolean <parameter> <optional>$debuginterface = &null;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> @@ -19,6 +20,7 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.writepackagefile.desc"> &title.desc; <para>ALWAYS use <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.debugpackagefile"><function>debugPackageFile</function></link> to verify that output is correct before overwriting your package.xml</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager.writepackagefile.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-cvs/dirlist.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-cvs/dirlist.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-cvs/dirlist.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-cvs/dirlist.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-cvs/dirlist.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs.dirlist"> <refnamediv> <refname><function>PEAR_PackageFileManager_CVS::dirList</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager/Cvs.php'; + require_once 'PackageFileManager/Cvs.php'; </funcsynopsisinfo> <funcprototype> <funcdef>array <function>PEAR_PackageFileManager_CVS::dirList</function></funcdef> @@ -19,6 +19,7 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs.dirlist.desc"> &title.desc; <para>This function is like <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.dirlist"><function>parent::dirList</function></link> except that instead of retrieving a regular filelist, it first retrieves a listing of all the CVS/Entries files in $directory and all of the subdirectories. Then, it reads the Entries file, and creates a listing of files that are a part of the CVS repository. No check is made to see if they have been modified, but newly added or removed files are ignored.</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-cvs.dirlist.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/dirlist.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/dirlist.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/dirlist.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/dirlist.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/dirlist.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.dirlist"> <refnamediv> <refname><function>PEAR_PackageFileManager_File::dirList</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager/File.php'; + require_once 'PackageFileManager/File.php'; </funcsynopsisinfo> <funcprototype> <funcdef>array <function>PEAR_PackageFileManager_File::dirList</function></funcdef> @@ -19,6 +19,7 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.dirlist.desc"> &title.desc; <para>The return format is an array of full paths to files</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.dirlist.param"> &title.param; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/getfilelist.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/getfilelist.xml:1.4 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/getfilelist.xml:1.5 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/getfilelist.xml:1.4 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/getfilelist.xml Wed Aug 13 14:12:31 2003 @@ -1,13 +1,14 @@ -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.getfilelist"> <refnamediv> <refname><function>PEAR_PackageFileManager_File::getFileList</function></refname> - <refpurpose>Generate the <filelist></filelist> section of the package file.</refpurpose> + <refpurpose>Generate the <filelist></filelist> section of the package +file.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager/File.php'; + require_once 'PackageFileManager/File.php'; </funcsynopsisinfo> <funcprototype> <funcdef>array <function>PEAR_PackageFileManager_File::getFileList</function></funcdef> @@ -19,6 +20,7 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.getfilelist.desc"> &title.desc; <para>This function performs the backend generation of the array containing all files in this package</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.getfilelist.throws"> &title.throws; Index: peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/pear_packagefilemanager_file.xml diff -u peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/pear_packagefilemanager_file.xml:1.5 peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/pear_packagefilemanager_file.xml:1.6 --- peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/pear_packagefilemanager_file.xml:1.5 Fri Aug 8 13:19:21 2003 +++ peardoc/en/package/pear/pear-packagefilemanager/pear-packagefilemanager-file/pear_packagefilemanager_file.xml Wed Aug 13 14:12:31 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.pear-packagefilemanager-file"> <refnamediv> <refname>constructor <function>PEAR_PackageFileManager_File::PEAR_PackageFileManager_File</function></refname> @@ -7,7 +7,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once 'PackageFileManager/File.php'; + require_once 'PackageFileManager/File.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void constructor <function>PEAR_PackageFileManager_File::PEAR_PackageFileManager_File</function></funcdef> @@ -20,6 +20,7 @@ <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.pear-packagefilemanager-file.desc"> &title.desc; <para>'ignore' is the only option that this class uses. See <link linkend="package.pear.pear-packagefilemanager.pear-packagefilemanager.setoptions"><function>PEAR_PackageFileManager::setOptions</function></link> for more information and formatting of this option</para> + </refsect1> <refsect1 id="package.pear.pear-packagefilemanager.pear-packagefilemanager-file.pear-packagefilemanager-file.param"> &title.param; @@ -29,7 +30,7 @@ <term> <type>PEAR_PackageFileManager</type> - <parameter>&$parent</parameter> + <parameter>&$parent</parameter> </term> <listitem> <para>