Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcdd0895

Browse files
committed
Update man page build instructions.
1 parentcff4aa6 commitcdd0895

File tree

1 file changed

+44
-15
lines changed

1 file changed

+44
-15
lines changed

‎doc/src/sgml/docguide.sgml

Lines changed: 44 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/docguide.sgml,v 1.72 2007/12/28 11:13:55 petere Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/docguide.sgml,v 1.73 2008/09/12 08:43:53 petere Exp $ -->
22

33
<appendix id="docguide">
44
<title>Documentation</title>
@@ -131,12 +131,21 @@
131131
</varlistentry>
132132

133133
<varlistentry>
134-
<term><ulink url="http://docbook2x.sourceforge.net">DocBook2X tools</ulink></term>
134+
<term><ulink url="http://search.cpan.org/dist/SGMLSpm/">SGMLSpm</ulink></term>
135135
<listitem>
136136
<para>
137-
This optional package is used to create man pages. It has a
138-
number of prerequisite packages of its own. Check the web
139-
site.
137+
This optional package is used to create man pages.
138+
</para>
139+
</listitem>
140+
</varlistentry>
141+
142+
<varlistentry>
143+
<term><ulink url="http://docbook2x.sourceforge.net">DocBook2X</ulink></term>
144+
<listitem>
145+
<para>
146+
This optional package is also used to create man pages. You
147+
want the <literal>docbook2man-sgmlspl</literal> package, not
148+
the main <literal>docbook2x</literal> package.
140149
</para>
141150
</listitem>
142151
</varlistentry>
@@ -257,6 +266,7 @@ CATALOG "docbook/4.2/catalog"
257266
apt-get install openjade1.3
258267
apt-get install docbook
259268
apt-get install docbook-dsssl
269+
apt-get install sgmlspl # for the man pages
260270
</programlisting>
261271
(The plain <literal>openjade</literal> package installs
262272
OpenJade 1.4, which seems not to work.)
@@ -573,25 +583,44 @@ gmake postgres.tar.gz
573583
<title>Manpages</title>
574584

575585
<para>
576-
We use the <application>docbook2man</application> utility to
586+
We use the <application>docbook2man-sgmlspl</application> utility
587+
from the <productname>DocBook2X</productname> project to
577588
convert <productname>DocBook</productname>
578589
<sgmltag>refentry</sgmltag> pages to *roff output suitable for man
579590
pages. The man pages are also distributed as a tar archive,
580591
similar to the <acronym>HTML</acronym> version. To create the man
581-
page package, use the commands:
592+
pages, use the commands:
582593
<programlisting>
583-
cd doc/src
584-
gmake man.tar.gz
594+
cd doc/src/sgml
595+
gmake man D2MDIR=<replaceable>directory</replaceable>
585596
</programlisting>
586-
which will result in a tar file being generated in the
587-
<filename>doc/src</filename> directory.
597+
Use the <varname>D2MDIR</varname> variable to specify the name of
598+
the directory where the
599+
file <filename>docbook2man-spec.pl</filename> from
600+
the <application>docbook2man-sgmlspl</application> package resides.
601+
There is no default for that. Since that package is not available
602+
or outdated in many packaging systems, you might want to just
603+
download the source code tarball and unpack it. No building is
604+
required. Then the path is something
605+
like <literal>D2MDIR=/home/you/somewhere/docbook2man-sgmlspl-1.0/perl</literal>.
606+
You may get warnings like this:
607+
<screen>
608+
Warning: unrecognized SDATA '[scaron]': please add definition to docbook2man-spec.pl
609+
Warning: unrecognized SDATA '[ouml ]': please add definition to docbook2man-spec.pl
610+
</screen>
611+
which can ignore if (and only if) you are using the latest version
612+
of <filename>docbook2man-spec.pl</filename>
613+
and you are not seeing any other SDATA warnings besides those.
588614
</para>
589615

590616
<para>
591-
To generate quality man pages, it might be necessary to use a
592-
hacked version of the conversion utility or do some manual
593-
postprocessing. All man pages should be manually inspected before
594-
distribution.
617+
To create the man page package for a release, use the following commands:
618+
<programlisting>
619+
cd doc/src
620+
gmake man.tar.gz D2MDIR=<replaceable>directory</replaceable>
621+
</programlisting>
622+
which will result in a tar file being generated in the
623+
<filename>doc/src</filename> directory.
595624
</para>
596625
</sect2>
597626

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp