source: pst/sgml/docbook-utils.xml@ f1c2a4f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since f1c2a4f was 8a67713c, checked in by Ken Moffat <ken@…>, 13 years ago

Fix docbook-utils so that the scripts work with grep-2.7.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@8746 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 9.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY docbook-utils-download-http "http://sources-redhat.mirrors.redwire.net/docbook-tools/new-trials/SOURCES/docbook-utils-&docbook-utils-version;.tar.gz">
8 <!ENTITY docbook-utils-download-ftp "ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/docbook-utils-&docbook-utils-version;.tar.gz">
9 <!ENTITY docbook-utils-md5sum "6b41b18c365c01f225bc417cf632d81c">
10 <!ENTITY docbook-utils-size "124 KB">
11 <!ENTITY docbook-utils-buildsize "1.44 MB">
12 <!ENTITY docbook-utils-time "less than 0.1 SBU">
13]>
14
15<sect1 id="docbook-utils" xreflabel="DocBook-utils-&docbook-utils-version;">
16 <?dbhtml filename="docbook-utils.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>DocBook-utils-&docbook-utils-version;</title>
24
25 <indexterm zone="docbook-utils">
26 <primary sortas="a-DocBook-utils">DocBook-utils</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to DocBook-utils</title>
31
32 <para>The <application>DocBook-utils</application> package is a collection
33 of utility scripts used to convert and analyze SGML documents in general,
34 and DocBook files in particular. The scripts are used to convert from
35 DocBook or other SGML formats into <quote>classical</quote> file formats
36 like HTML, man, info, RTF and many more. There's also a utility to compare
37 two SGML files and only display the differences in markup. This is useful
38 for comparing documents prepared for different languages.</para>
39
40 &lfs67_checked;
41 <para>&lfssvn_checked;20101229&lfssvn_checked2;</para>
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>Download (HTTP): <ulink url="&docbook-utils-download-http;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download (FTP): <ulink url="&docbook-utils-download-ftp;"/></para>
50 </listitem>
51 <listitem>
52 <para>Download MD5 sum: &docbook-utils-md5sum;</para>
53 </listitem>
54 <listitem>
55 <para>Download size: &docbook-utils-size;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated disk space required: &docbook-utils-buildsize;</para>
59 </listitem>
60 <listitem>
61 <para>Estimated build time: &docbook-utils-time;</para>
62 </listitem>
63 </itemizedlist>
64
65 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
66 <itemizedlist spacing='compact'>
67 <listitem>
68 <para>Required Patch: <ulink
69 url="&patch-root;/docbook-utils-&docbook-utils-version;-grep_fix-1.patch"/></para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">DocBook-utils Dependencies</bridgehead>
74
75 <bridgehead renderas="sect4">Required</bridgehead>
76 <para role="required"><xref linkend="openjade"/>,
77 <xref linkend="docbook-dsssl"/>, and
78 <xref linkend="sgml-dtd-3"/></para>
79
80 <bridgehead renderas="sect4">Optional (Runtime Dependencies Only)</bridgehead>
81 <para role="optional"><xref linkend="jadetex"/> (for conversion to DVI, PS and PDF),
82 <xref linkend="perl-sgmlspm"/> (for conversion to man and texinfo), and
83 <xref linkend="lynx"/> or <xref linkend="Links"/> or <xref linkend="w3m"/>
84 (for conversion to ASCII text)</para>
85
86 <para condition="html" role="usernotes">User Notes:
87 <ulink url="&blfs-wiki;/docbook-utils"/></para>
88
89 </sect2>
90
91 <sect2 role="installation">
92 <title>Installation of DocBook-utils</title>
93
94 <!-- This shouldn't be required any longer as the OpenSP catalog stuff
95 was removed from BLFS two revisions ago.
96
97 <note>
98 <para>Earlier versions of the BLFS <application>OpenSP</application>
99 instructions installed a catalog containing an SGMLDECL
100 <filename>unicode.sd</filename> declaration into the system SGML
101 catalogs. This declaration causes some of the
102 <application>OpenJade</application> programs to fail occasionally.
103 You'll need to remove these catalog definitions if they exist, or
104 the package build will fail. The following command can determine if
105 you need to remove these catalog definitions:</para>
106
107<screen><userinput>grep "OpenSP-1.5.1" /etc/sgml/catalog</userinput></screen>
108
109 <para>If anything was returned, run the following command as the
110 <systemitem class="username">root</systemitem> user to remove the
111 catalog definitions:</para>
112
113<screen role="root"><userinput>sed -i.orig \
114 -e "/CATALOG \/etc\/sgml\/OpenSP-1.5.1.cat/d" \
115 /etc/sgml/catalog \
116 /etc/sgml/sgml-docbook.cat</userinput></screen>
117
118 </note>
119
120 -->
121
122 <para>Install <application>DocBook-utils</application> by running the
123 following commands:</para>
124
125<screen><userinput>
126patch -Np1 -i ../docbook-utils-&docbook-utils-version;-grep_fix-1.patch &amp;&amp;
127sed -i 's:/html::' doc/HTML/Makefile.in &amp;&amp;
128./configure --prefix=/usr &amp;&amp;
129make</userinput></screen>
130
131 <para>This package does not come with a test suite.</para>
132
133 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
134
135<screen role="root"><userinput>make install</userinput></screen>
136
137 <para>Many packages use an alternate name for the
138 <application>DocBook-utils</application> scripts. If you wish to create
139 these alternate names, use the following command:</para>
140
141<screen role="root"><userinput>for doctype in html ps dvi man pdf rtf tex texi txt
142do
143 ln -s docbook2$doctype /usr/bin/db2$doctype
144done</userinput></screen>
145
146 <note>
147 <para>The <command>jw</command> script uses the <command>which</command>
148 command to locate required utilities. You must install
149 <xref linkend="which"/> before attempting to use any of the
150 <application>DocBook-utils</application> programs.</para>
151 </note>
152
153 </sect2>
154
155 <sect2 role="commands">
156 <title>Command Explanations</title>
157
158 <para><command>patch -Np1 -i ../docbook-utils-&docbook-utils-version;-grep_fix-1.patch</command>:
159 This patch corrects the syntax in the jw (Jade Wrapper) script which is at
160 the heart of much db2* processing, so that the current version of
161 <application>Grep</application> will not reject it.</para>
162
163 <para><command>sed -i 's:/html::' doc/HTML/Makefile.in</command>:
164 This command changes the installation directory of the HTML documents.</para>
165
166 </sect2>
167
168 <sect2 role="content">
169 <title>Contents</title>
170
171 <segmentedlist>
172 <segtitle>Installed Programs</segtitle>
173 <segtitle>Installed Libraries</segtitle>
174 <segtitle>Installed Directories</segtitle>
175 <segtitle>Installed Symlinks</segtitle>
176
177 <seglistitem>
178 <seg>docbook2dvi, docbook2html, docbook2man, docbook2pdf, docbook2ps,
179 docbook2rtf, docbook2tex, docbook2texi, docbook2txt, jw, and
180 sgmldiff</seg>
181 <seg>None</seg>
182 <seg>/usr/share/doc/docbook-utils-&docbook-utils-version; and
183 /usr/share/sgml/docbook/utils-&docbook-utils-version;</seg>
184 <seg>db2dvi, db2html, db2man, db2pdf, db2ps, db2rtf, db2tex, db2texi,
185 and db2txt</seg>
186 </seglistitem>
187 </segmentedlist>
188
189 <variablelist>
190 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
191 <?dbfo list-presentation="list"?>
192 <?dbhtml list-presentation="table"?>
193
194 <varlistentry id="docbook2">
195 <term><command>docbook2*</command></term>
196 <listitem>
197 <para>are simple one-line wrapper scripts to <command>jw</command>.
198 They are provided as easy-to-remember names used to convert DocBook or
199 other SGML files to the respective format.</para>
200 <indexterm zone="docbook-utils docbook2">
201 <primary sortas="b-docbook2-star">docbook2*</primary>
202 </indexterm>
203 </listitem>
204 </varlistentry>
205
206 <varlistentry id="db2">
207 <term><command>db2*</command></term>
208 <listitem>
209 <para>are symlinks pointing at the respectively named
210 <command>docbook2*</command> commands, created to satisfy some
211 program's use of these names.</para>
212 <indexterm zone="docbook-utils db2">
213 <primary sortas="g-db2-star">db2*</primary>
214 </indexterm>
215 </listitem>
216 </varlistentry>
217
218 <varlistentry id="jw">
219 <term><command>jw</command></term>
220 <listitem>
221 <para>is a script used to convert DocBook or other SGML files to various
222 output formats. It hides most of <application>OpenJade</application>'s
223 complexity and adds comfortable features.</para>
224 <indexterm zone="docbook-utils jw">
225 <primary sortas="b-jw">jw</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 <varlistentry id="sgmldiff">
231 <term><command>sgmldiff</command></term>
232 <listitem>
233 <para>is used to compare two SGML files and only return the differences
234 in the markup. This is especially useful to compare files that should be
235 identical except for language differences in the content.</para>
236 <indexterm zone="docbook-utils sgmldiff">
237 <primary sortas="b-sgmldiff">sgmldiff</primary>
238 </indexterm>
239 </listitem>
240 </varlistentry>
241
242 </variablelist>
243
244 </sect2>
245
246</sect1>
Note: See TracBrowser for help on using the repository browser.