pkgsrc/doc/guide/files/editing.xml
2013-03-26 20:21:38 +00:00

83 lines
2.5 KiB
XML

<!-- $NetBSD: editing.xml,v 1.15 2013/03/26 20:21:38 wiz Exp $ -->
<appendix id="editing">
<title>Editing guidelines for the pkgsrc guide</title>
<para>This section contains information on editing the pkgsrc
guide itself.</para>
<sect1 id="targets">
<title>Make targets</title>
<para>The pkgsrc guide's source code is stored in
<filename>pkgsrc/doc/guide/files</filename>, and several files
are created from it:</para>
<itemizedlist>
<listitem><para><filename>pkgsrc/doc/pkgsrc.txt</filename></para></listitem>
<listitem><para><filename>pkgsrc/doc/pkgsrc.html</filename></para></listitem>
<listitem><para><ulink
url="http://www.NetBSD.org/docs/pkgsrc/"/></para></listitem>
<listitem><para><ulink
url="http://www.NetBSD.org/docs/pkgsrc/pkgsrc.pdf"/>:
The PDF version of the pkgsrc guide.</para></listitem>
<listitem><para><ulink
url="http://www.NetBSD.org/docs/pkgsrc/pkgsrc.ps"/>:
PostScript version of the pkgsrc guide.</para></listitem>
</itemizedlist>
</sect1>
<sect1 id="procedure">
<title>Procedure</title>
<para>The procedure to edit the pkgsrc guide is:</para>
<procedure>
<step><para>Make sure you have the packages needed to
regenerate the pkgsrc guide (and other XML-based NetBSD
documentation) installed. These are automatically installed when
you install the <filename
role="pkg">meta-pkgs/pkgsrc-guide-tools</filename> package.</para></step>
<step><para>Run <command>cd doc/guide</command> to get to the
right directory. All further steps will take place
here.</para></step>
<step><para>Edit the XML file(s) in
<filename>files/</filename>.</para></step>
<step><para>Run <command>bmake</command> to check the pkgsrc
guide for valid XML and to build the final output files. If you
get any errors at this stage, you can just edit the files, as
there are only symbolic links in the working directory, pointing
to the files in <filename>files/</filename>.</para></step>
<step><para><command>(cd files &amp;&amp; cvs
commit)</command></para></step>
<step><para>Run <command>bmake clean && bmake</command> to
regenerate the output files with the proper RCS
Ids.</para></step>
<step><para>Run <command>bmake regen</command> to install and
commit the files in both <filename>pkgsrc/doc</filename> and
<filename>htdocs</filename>.</para>
<note><para>If you have added, removed or renamed some chapters,
you need to synchronize them using <command>cvs add</command> or
<command>cvs delete</command> in the htdocs
directory.</para></note>
</step>
</procedure>
</sect1>
</appendix>