cvs: peardoc /peardoc2 manual.xml.in /peardoc2/en/guide/developers release.xml
| From: | Tal Peer | Date: | Thu, 20 Mar 2003 14:55:37 +0000 |
| Subject: | cvs: peardoc /peardoc2 manual.xml.in /peardoc2/en/guide/developers release.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-477@lists.php.net to get a copy of this message | ||
tal Thu Mar 20 09:55:37 2003 EDT
Added files:
/peardoc/peardoc2/en/guide/developers release.xml
Modified files:
/peardoc/peardoc2 manual.xml.in
Log:
Added a guide for releasing a package
# And make Lukas happy :)
Index: peardoc/peardoc2/manual.xml.in
diff -u peardoc/peardoc2/manual.xml.in:1.8 peardoc/peardoc2/manual.xml.in:1.9
--- peardoc/peardoc2/manual.xml.in:1.8 Mon Jan 13 13:11:11 2003
+++ peardoc/peardoc2/manual.xml.in Thu Mar 20 09:55:37 2003
@@ -44,6 +44,7 @@
&guide.developers.meaning;
&guide.developers.contributing;
&guide.developers.packagedef;
+ &guide.developers.release;
&guide.developers.supporting;
<!-- &guide.developers.documentation; -->
</part>
Index: peardoc/peardoc2/en/guide/developers/release.xml
+++ peardoc/peardoc2/en/guide/developers/release.xml
<?xml version="1.0" encoding="iso-8859-1" ?>
<!-- $Revision: 1.1 $ -->
<chapter id="developers.release">
<docinfo>
<author>
<firstname>Tal</firstname>
<surname>Peer</surname>
</author>
<date>2003-03-20</date>
</docinfo>
<title>Releasing A Package</title>
<subtitle>The steps required from package maintainers to release a
package.</subtitle>
<sect1 id="developers.release.prerequisites">
<title>Prerequisites</title>
<para>
The first step you must perform, is to check that your package conforms to
the &link.coding-standards;. After that, you need to make sure the package
is approved by the PEAR community (currently this means that you get five
votes (+1s) as replies to your package submission mail).
</para>
<para>
After you have recivied the sufficient amount of votes and your package is
standards-compliant, you should ask for a PEAR website account by using the
form at <ulink
url="http://pear.php.net/account-request.php">http://pear.php.net/account-request.php</ulink>.
After the account has been created, you can proceed to the next step.
</para>
</sect1>
<sect1 id="developers.release.validating">
<title>Validating The Package Definition File</title>
<para>
Next, you should check the package definition file
(<filename>package.xml</filename>) for validity. This is done by running the
command: <command>pear package-validate package.xml</command>. Fix the
errors and warnings, if any, and proceed to the next step.
</para>
<note>
<para>
For help with writing the package definition file see the <link
linkend="developers.packagedef">package definition file
description</link>.
</para>
</note>
</sect1>
<sect1 id="developers.release.packaging">
<title>Packaging The Release Tarball</title>
<para>
Now that your package has a valid package definition file, you can package
the release tarball. Cd to the top-level directory of the package and run:
<command>pear package package.xml</command>. This will create the release
tarball (gzipped if zlib support is present) that will be used later to
upload the new release.
</para>
<para>
Next, you should install the package locally by running: <command>pear
install <file></command> (file is the tarball you just packaged).
This is done to ensure that the package definition file is not only
valid-xml but also contains valid info. You should manually check that
every file is installed into the correct place. If your package contains
test scripts (highly recommended) you should run them.
</para>
<para>
If anything fails at this stage, correct it and re-package and re-test.
When everything seems OK, proceed.
</para>
</sect1>
<sect1 id="developers.release.web">
<title>Releasing The Package Through The Web Interface</title>
<para>
First, you should login to the PEAR website using the account you've been
given (see the first step).
</para>
<para>
If this is the first release of your package, you should first register it.
Registration is done through the form at <ulink
url="http://pear.php.net/package-new.php">http://pear.php.net/package-new.php</ulink>.
If you are in doubt about the category you should choose, consult the
community (preferably through the pear-dev mailing list).
</para>
<para>
Now, finally, you can release your beloved package. This is done, again,
using the convenient web interface. Use the form at <ulink
url="http://pear.php.net/release-upload.php">http://pear.php.net/release-upload.php</ulink>.
</para>
<para>
That's it! your package has been released, an announcement has been and
everyone is happy :)
</para>
</sect1>
</chapter>
<!-- 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
-->