[d7fb898e] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[d7fb898e] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[8dfc5c3] | 7 | <!ENTITY docbook-utils-download-http "https://sourceware.org/ftp/docbook-tools/new-trials/SOURCES/docbook-utils-&docbook-utils-version;.tar.gz">
|
---|
| 8 | <!ENTITY docbook-utils-download-ftp "ftp://sourceware.org/pub/docbook-tools/new-trials/SOURCES/docbook-utils-&docbook-utils-version;.tar.gz">
|
---|
[2dde015] | 9 | <!ENTITY docbook-utils-md5sum "6b41b18c365c01f225bc417cf632d81c">
|
---|
[e8b9dbf7] | 10 | <!ENTITY docbook-utils-size "124 KB">
|
---|
| 11 | <!ENTITY docbook-utils-buildsize "1.44 MB">
|
---|
[738c5f8] | 12 | <!ENTITY docbook-utils-time "less than 0.1 SBU">
|
---|
[d7fb898e] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="docbook-utils" xreflabel="DocBook-utils-&docbook-utils-version;">
|
---|
[5bae145] | 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 |
|
---|
[fa3edfef] | 32 | <para>
|
---|
| 33 | The <application>DocBook-utils</application> package is a collection
|
---|
| 34 | of utility scripts used to convert and analyze SGML documents in general,
|
---|
| 35 | and DocBook files in particular. The scripts are used to convert from
|
---|
| 36 | DocBook or other SGML formats into <quote>classical</quote> file formats
|
---|
| 37 | like HTML, man, info, RTF and many more. There's also a utility to compare
|
---|
| 38 | two SGML files and only display the differences in markup. This is useful
|
---|
| 39 | for comparing documents prepared for different languages.
|
---|
| 40 | </para>
|
---|
[5bae145] | 41 |
|
---|
[b3148f55] | 42 | &lfs101_checked;
|
---|
[00555b0f] | 43 |
|
---|
[5bae145] | 44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
[fa3edfef] | 47 | <para>
|
---|
| 48 | Download (HTTP): <ulink url="&docbook-utils-download-http;"/>
|
---|
| 49 | </para>
|
---|
[5bae145] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[fa3edfef] | 52 | <para>
|
---|
| 53 | Download (FTP): <ulink url="&docbook-utils-download-ftp;"/>
|
---|
| 54 | </para>
|
---|
[5bae145] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[fa3edfef] | 57 | <para>
|
---|
| 58 | Download MD5 sum: &docbook-utils-md5sum;
|
---|
| 59 | </para>
|
---|
[5bae145] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[fa3edfef] | 62 | <para>
|
---|
| 63 | Download size: &docbook-utils-size;
|
---|
| 64 | </para>
|
---|
[5bae145] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[fa3edfef] | 67 | <para>
|
---|
| 68 | Estimated disk space required: &docbook-utils-buildsize;
|
---|
| 69 | </para>
|
---|
[5bae145] | 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
[fa3edfef] | 72 | <para>
|
---|
| 73 | Estimated build time: &docbook-utils-time;
|
---|
| 74 | </para>
|
---|
[5bae145] | 75 | </listitem>
|
---|
| 76 | </itemizedlist>
|
---|
| 77 |
|
---|
[8a67713c] | 78 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 79 | <itemizedlist spacing='compact'>
|
---|
| 80 | <listitem>
|
---|
[fa3edfef] | 81 | <para>
|
---|
| 82 | Required patch: <ulink url=
|
---|
| 83 | "&patch-root;/docbook-utils-&docbook-utils-version;-grep_fix-1.patch"/>
|
---|
| 84 | </para>
|
---|
[8a67713c] | 85 | </listitem>
|
---|
| 86 | </itemizedlist>
|
---|
| 87 |
|
---|
[5bae145] | 88 | <bridgehead renderas="sect3">DocBook-utils Dependencies</bridgehead>
|
---|
| 89 |
|
---|
| 90 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[3f8a5e2] | 91 | <para role="required">
|
---|
[dc6ba1c0] | 92 | <xref linkend="openjade"/>,
|
---|
[3f8a5e2] | 93 | <xref linkend="docbook-dsssl"/>, and
|
---|
| 94 | <xref linkend="sgml-dtd-3"/>
|
---|
| 95 | </para>
|
---|
[5bae145] | 96 |
|
---|
[738c5f8] | 97 | <bridgehead renderas="sect4">Optional (Runtime Dependencies Only)</bridgehead>
|
---|
[3f8a5e2] | 98 | <para role="optional">
|
---|
[4392a40] | 99 | <xref role="runtime" linkend="perl-sgmlspm"/> (for conversion to man and
|
---|
[f5cdf41] | 100 | texinfo), and
|
---|
| 101 | <xref role="runtime" linkend="lynx"/> or
|
---|
| 102 | <xref role="runtime" linkend="Links"/> or
|
---|
[1eac9eb] | 103 | <ulink role="runtime" url="&w3m-url;">W3m</ulink>
|
---|
| 104 | (for conversion to ASCII text)
|
---|
[3f8a5e2] | 105 | </para>
|
---|
[5bae145] | 106 |
|
---|
[977061b0] | 107 | <para condition="html" role="usernotes">User Notes:
|
---|
| 108 | <ulink url="&blfs-wiki;/docbook-utils"/></para>
|
---|
| 109 |
|
---|
[5bae145] | 110 | </sect2>
|
---|
| 111 |
|
---|
| 112 | <sect2 role="installation">
|
---|
| 113 | <title>Installation of DocBook-utils</title>
|
---|
| 114 |
|
---|
[fa3edfef] | 115 | <para>
|
---|
| 116 | Install <application>DocBook-utils</application> by running the
|
---|
| 117 | following commands:
|
---|
| 118 | </para>
|
---|
[2dde015] | 119 |
|
---|
[e958dbb2] | 120 | <screen><userinput>patch -Np1 -i ../docbook-utils-&docbook-utils-version;-grep_fix-1.patch &&
|
---|
[8fc8e98] | 121 | sed -i 's:/html::' doc/HTML/Makefile.in &&
|
---|
[512f843] | 122 |
|
---|
[fc6725ee] | 123 | ./configure --prefix=/usr --mandir=/usr/share/man &&
|
---|
[5bae145] | 124 | make</userinput></screen>
|
---|
[2dde015] | 125 |
|
---|
[fa3edfef] | 126 | <para>
|
---|
| 127 | This package does not come with a test suite.
|
---|
| 128 | </para>
|
---|
[738c5f8] | 129 |
|
---|
[fa3edfef] | 130 | <para>
|
---|
| 131 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 132 | </para>
|
---|
[eb091c9] | 133 |
|
---|
[cf67717] | 134 | <screen role="root"><userinput>make docdir=/usr/share/doc install</userinput></screen>
|
---|
[eb091c9] | 135 |
|
---|
[fa3edfef] | 136 | <para>
|
---|
| 137 | 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 as
|
---|
| 140 | the <systemitem class="username">root</systemitem> user:
|
---|
| 141 | </para>
|
---|
[5bae145] | 142 |
|
---|
| 143 | <screen role="root"><userinput>for doctype in html ps dvi man pdf rtf tex texi txt
|
---|
[eb091c9] | 144 | do
|
---|
[cf67717] | 145 | ln -svf docbook2$doctype /usr/bin/db2$doctype
|
---|
[5bae145] | 146 | done</userinput></screen>
|
---|
| 147 |
|
---|
[4570991] | 148 | <note>
|
---|
[fa3edfef] | 149 | <para>
|
---|
| 150 | The <command>jw</command> script uses the <command>which</command>
|
---|
| 151 | command to locate required utilities. You must install
|
---|
| 152 | <xref linkend="which"/> before attempting to use any of the
|
---|
| 153 | <application>DocBook-utils</application> programs.
|
---|
| 154 | </para>
|
---|
[4570991] | 155 | </note>
|
---|
| 156 |
|
---|
[5bae145] | 157 | </sect2>
|
---|
| 158 |
|
---|
[ecb6484a] | 159 | <sect2 role="commands">
|
---|
| 160 | <title>Command Explanations</title>
|
---|
| 161 |
|
---|
[fa3edfef] | 162 | <para>
|
---|
| 163 | <command>patch -Np1 -i ../docbook-utils-&docbook-utils-version;-grep_fix-1.patch</command>:
|
---|
| 164 | This patch corrects the syntax in the jw (Jade Wrapper) script which is
|
---|
| 165 | at the heart of much db2* processing, so that the current version of
|
---|
| 166 | <application>grep</application> will not reject it.
|
---|
| 167 | </para>
|
---|
[8a67713c] | 168 |
|
---|
[fa3edfef] | 169 | <para>
|
---|
| 170 | <command>sed -i 's:/html::' doc/HTML/Makefile.in</command>:
|
---|
| 171 | This command changes the installation directory of the HTML documents.
|
---|
| 172 | </para>
|
---|
[ecb6484a] | 173 |
|
---|
[fa3edfef] | 174 | <para>
|
---|
| 175 | <option>docdir=/usr/share/doc</option>: This option is placed on the
|
---|
| 176 | <command>make install</command> line because is is not
|
---|
| 177 | recognized by <command>configure</command>.
|
---|
| 178 | </para>
|
---|
[cf67717] | 179 |
|
---|
[ecb6484a] | 180 | </sect2>
|
---|
| 181 |
|
---|
[5bae145] | 182 | <sect2 role="content">
|
---|
| 183 | <title>Contents</title>
|
---|
| 184 |
|
---|
| 185 | <segmentedlist>
|
---|
| 186 | <segtitle>Installed Programs</segtitle>
|
---|
| 187 | <segtitle>Installed Libraries</segtitle>
|
---|
| 188 | <segtitle>Installed Directories</segtitle>
|
---|
| 189 | <segtitle>Installed Symlinks</segtitle>
|
---|
| 190 |
|
---|
| 191 | <seglistitem>
|
---|
| 192 | <seg>docbook2dvi, docbook2html, docbook2man, docbook2pdf, docbook2ps,
|
---|
| 193 | docbook2rtf, docbook2tex, docbook2texi, docbook2txt, jw, and
|
---|
| 194 | sgmldiff</seg>
|
---|
| 195 | <seg>None</seg>
|
---|
[ecb6484a] | 196 | <seg>/usr/share/doc/docbook-utils-&docbook-utils-version; and
|
---|
[5bae145] | 197 | /usr/share/sgml/docbook/utils-&docbook-utils-version;</seg>
|
---|
| 198 | <seg>db2dvi, db2html, db2man, db2pdf, db2ps, db2rtf, db2tex, db2texi,
|
---|
| 199 | and db2txt</seg>
|
---|
| 200 | </seglistitem>
|
---|
| 201 | </segmentedlist>
|
---|
| 202 |
|
---|
| 203 | <variablelist>
|
---|
| 204 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 205 | <?dbfo list-presentation="list"?>
|
---|
| 206 | <?dbhtml list-presentation="table"?>
|
---|
| 207 |
|
---|
| 208 | <varlistentry id="docbook2">
|
---|
| 209 | <term><command>docbook2*</command></term>
|
---|
| 210 | <listitem>
|
---|
[fa3edfef] | 211 | <para>
|
---|
| 212 | are simple one-line wrapper scripts to <command>jw</command>.
|
---|
| 213 | They are provided as easy-to-remember names used to convert
|
---|
[4c24eb0a] | 214 | DocBook or other SGML files to the respective format
|
---|
[fa3edfef] | 215 | </para>
|
---|
[5bae145] | 216 | <indexterm zone="docbook-utils docbook2">
|
---|
| 217 | <primary sortas="b-docbook2-star">docbook2*</primary>
|
---|
| 218 | </indexterm>
|
---|
| 219 | </listitem>
|
---|
| 220 | </varlistentry>
|
---|
| 221 |
|
---|
| 222 | <varlistentry id="db2">
|
---|
| 223 | <term><command>db2*</command></term>
|
---|
| 224 | <listitem>
|
---|
[fa3edfef] | 225 | <para>
|
---|
| 226 | are symlinks pointing at the respectively named
|
---|
| 227 | <command>docbook2*</command> commands, created to satisfy some
|
---|
[4c24eb0a] | 228 | program's use of these names
|
---|
[fa3edfef] | 229 | </para>
|
---|
[5bae145] | 230 | <indexterm zone="docbook-utils db2">
|
---|
[b960e3ec] | 231 | <primary sortas="b-db2-star">db2*</primary>
|
---|
[5bae145] | 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 |
|
---|
| 236 | <varlistentry id="jw">
|
---|
| 237 | <term><command>jw</command></term>
|
---|
| 238 | <listitem>
|
---|
[fa3edfef] | 239 | <para>
|
---|
| 240 | is a script used to convert DocBook or other SGML files to various
|
---|
| 241 | output formats. It hides most of
|
---|
| 242 | <application>OpenJade</application>'s complexity and adds
|
---|
[4c24eb0a] | 243 | comfortable features
|
---|
[fa3edfef] | 244 | </para>
|
---|
[5bae145] | 245 | <indexterm zone="docbook-utils jw">
|
---|
| 246 | <primary sortas="b-jw">jw</primary>
|
---|
| 247 | </indexterm>
|
---|
| 248 | </listitem>
|
---|
| 249 | </varlistentry>
|
---|
| 250 |
|
---|
| 251 | <varlistentry id="sgmldiff">
|
---|
| 252 | <term><command>sgmldiff</command></term>
|
---|
| 253 | <listitem>
|
---|
[fa3edfef] | 254 | <para>
|
---|
| 255 | is used to compare two SGML files and only return the differences
|
---|
| 256 | in the markup. This is especially useful to compare files that
|
---|
[4c24eb0a] | 257 | should be identical except for language differences in the content
|
---|
[fa3edfef] | 258 | </para>
|
---|
[5bae145] | 259 | <indexterm zone="docbook-utils sgmldiff">
|
---|
| 260 | <primary sortas="b-sgmldiff">sgmldiff</primary>
|
---|
| 261 | </indexterm>
|
---|
| 262 | </listitem>
|
---|
| 263 | </varlistentry>
|
---|
| 264 |
|
---|
| 265 | </variablelist>
|
---|
| 266 |
|
---|
| 267 | </sect2>
|
---|
[d7fb898e] | 268 |
|
---|
| 269 | </sect1>
|
---|