cvs: peardoc /en/guide/developers package2.xml /en/guide/developers/package2 file.xml

From: Date: Sun, 13 Mar 2005 04:20:09 +0000
Subject: cvs: peardoc /en/guide/developers package2.xml /en/guide/developers/package2 file.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5660@lists.php.net to get a copy of this message
cellog Sat Mar 12 23:20:09 2005 EDT Added files: /peardoc/en/guide/developers/package2 file.xml Modified files: /peardoc/en/guide/developers package2.xml Log: add docs for <file> http://cvs.php.net/diff.php/peardoc/en/guide/developers/package2.xml?r1=1.6&r2=1.7&ty=u Index: peardoc/en/guide/developers/package2.xml diff -u peardoc/en/guide/developers/package2.xml:1.6 peardoc/en/guide/developers/package2.xml:1.7 --- peardoc/en/guide/developers/package2.xml:1.6 Sun Mar 6 00:40:18 2005 +++ peardoc/en/guide/developers/package2.xml Sat Mar 12 23:20:08 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <chapter id="guide.developers.package2"> <title>The package definition file <filename>package.xml</filename>, version 2.0</title> <titleabbrev><filename>package.xml 2.0</filename></titleabbrev> @@ -90,7 +90,7 @@ They can be multi-line &lt;/notes&gt; <link linkend="guide.developers.package2.contents">&lt;contents&gt;</link> - &lt;dir name=&quot;/&quot;&gt; + <link linkend="guide.developers.package2.dir">&lt;dir name=&quot;/&quot;&gt;</link> &lt;dir name=&quot;PEAR&quot;&gt; &lt;dir name=&quot;ChannelFile&quot;&gt; &lt;file name=&quot;Parser.php&quot; role=&quot;php&quot; /&gt; @@ -314,6 +314,8 @@ &guide.developers.package2.stability; &guide.developers.package2.license; &guide.developers.package2.contents; + &guide.developers.package2.dir; + &guide.developers.package2.file; &guide.developers.package2.release; </sect1> </chapter> http://cvs.php.net/co.php/peardoc/en/guide/developers/package2/file.xml?r=1.1&p=1 Index: peardoc/en/guide/developers/package2/file.xml +++ peardoc/en/guide/developers/package2/file.xml <!-- $Revision: 1.1 $ --> <refentry id="guide.developers.package2.file"> <refnamediv> <refname>&lt;file&gt;</refname> <refpurpose>documenting a file in the &lt;contents&gt; tag</refpurpose> </refnamediv> <refsect1 id="guide.developers.package2.file.purpose"> <title>Documenting files</title> <para> The &lt;file&gt; tag is almost identical to package.xml 1.0. Required attributes are name and role. Optional attributes are baseinstalldir and md5sum. Optional attributes platform and install-as have been replaced by the <link linkend="guide.developers.package2.release.purpose">release tags</link>. Specifically, &lt;install&gt; is used to specify install-as, and the &lt;ignore&gt; tag can be used in conjunction with &lt;installconditions&gt; to exclude packages from being installed on particular platforms. </para> <para> For those familiar with the platform attribute, the way to handle this example: </para> <para> <![CDATA[<file name="scripts/foo.bat" role="script" install-as="foo.bat" platform="windows">]]> </para> <para> is to in fact create two release sections. The file tag would then look like: </para> <para> <![CDATA[<file name="scripts/foo.bat" role="script">]]> </para> <para> and the release section would look like this: </para> <para> <![CDATA[ <phprelease> <installconditions> <os>windows</os> </installconditions> <install name="scripts/foo.bat" as="foo.bat"/> </phprelease> <phprelease> <ignore name="scripts/foo.bat"/> </phprelease> ]]> </para> <para> Note that the second &lt;phprelease&gt; tag could just as easily have had an &lt;installconditions&gt; tag containing &lt;os&gt;unix&lt;/os&gt;, but this is unnecessary, as the second release will be processed on any system that is not a windows system. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->

« previous php.pear.doc (#5660) next »