source: clfs-sysroot/BOOK/final-system/common/file.xml@ 72d10d2

Last change on this file since 72d10d2 was f3547a3, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Add new compressors patches to file texinfo and man. Also add the file fixes patch.

  • Property mode set to 100644
File size: 2.8 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
8<sect1 id="ch-system-file" role="wrap">
9 <?dbhtml filename="file.html"?>
10
11 <title>File-&file-version;</title>
12
13 <indexterm zone="ch-system-file">
14 <primary sortas="a-File">File</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The File package contains a utility for determining the type of
21 a given file or files.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of File</title>
27
28 <para os="p1">The following patch will fix an issue due to utf-8 with file on documents:</para>
29
30<screen os="p2"><userinput>patch -Np1 -i ../&file-fixes-patch;</userinput></screen>
31
32 <para os="p3">The following patch will add support for new compressors like XZ Utils:</para>
33
34<screen os="p4"><userinput>patch -Np1 -i ../&file-new_compressors-patch;</userinput></screen>
35
36 <para os="a">Prepare File for compilation:</para>
37
38<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
39 --prefix=/usr</userinput></screen>
40
41 <para os="c">Compile the package:</para>
42
43<screen os="d"><userinput>make</userinput></screen>
44
45 <para os="e">Install the package:</para>
46
47<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
48
49 </sect2>
50
51 <sect2 id="contents-file" role="content">
52 <title>Contents of File</title>
53
54 <segmentedlist>
55 <segtitle>Installed programs</segtitle>
56 <segtitle>Installed library</segtitle>
57
58 <seglistitem>
59 <seg>file</seg>
60 <seg>libmagic.[a,so]</seg>
61 </seglistitem>
62 </segmentedlist>
63
64 <variablelist>
65 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
66 <?dbfo list-presentation="list"?>
67 <?dbhtml list-presentation="table"?>
68
69 <varlistentry id="file">
70 <term><command>file</command></term>
71 <listitem>
72 <para>Tries to classify each given file; it does this by performing
73 several tests&mdash;file system tests, magic number tests, and
74 language tests</para>
75 <indexterm zone="ch-system-file file">
76 <primary sortas="b-file">file</primary>
77 </indexterm>
78 </listitem>
79 </varlistentry>
80
81 <varlistentry id="libmagic">
82 <term><filename class="libraryfile">libmagic</filename></term>
83 <listitem>
84 <para>Contains routines for magic number recognition, used by the
85 <command>file</command> program</para>
86 <indexterm zone="ch-system-file libmagic">
87 <primary sortas="c-libmagic">libmagic</primary>
88 </indexterm>
89 </listitem>
90 </varlistentry>
91
92 </variablelist>
93
94 </sect2>
95
96</sect1>
Note: See TracBrowser for help on using the repository browser.