php-doc-en/internals/pdo/packaging.xml
Nuno Lopes 1257278519 minor XML tuning
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@197576 c90b9560-bf6c-de11-be94-00142212c4b1
2005-10-04 19:55:07 +00:00

68 lines
2 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<sect1 id="internals.pdo.packaging">
<title>Packaging and distribution</title>
<sect2>
<title>Creating a package</title>
<para>
PDO drivers are released via PECL; all the usual rules for PECL extensions
apply. Packaging is accomplished by creating a valid
<filename>package.xml</filename> file and then running:
</para>
<screen><![CDATA[
$ pear package
]]></screen>
<para>
This will create a tarball named <filename>PDO_SKEL-X.Y.Z.tgz</filename>.
</para>
<para>
Before releasing the package, you should test that it builds correctly; if
you've made a mistake in your <filename>config.m4</filename> or
<filename>package.xml</filename> files, the package may not function
correctly. You can test the build, without installing anything, using the
following invocation:
</para>
<screen><![CDATA[
$ pear build package.xml
]]></screen>
<para>
Once this is proven to work, you can test installation:
</para>
<screen><![CDATA[
$ pear package
$ sudo pear install PDO_SKEL-X.Y.X.tgz
]]></screen>
<para>
Full details about <filename>package.xml</filename> can be found in the PEAR
Programmer's documentation (<ulink url="&url.php.pear.manual;"/>).
</para>
</sect2>
<sect2>
<title>Releasing the package</title>
<para>
A PDO driver is released via the PHP Extension Community Library (PECL).
Information about PECL can be found at <ulink url="http://pecl.php.net/index.php">http://pecl.php.net/index.php</ulink>.
</para>
</sect2>
</sect1>
<!-- 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
indent-tabs-mode:nil
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
-->