file.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. <sect1 id="ch-system-file" role="wrap">
  8. <?dbhtml filename="file.html"?>
  9. <title>File-&file-version;</title>
  10. <indexterm zone="ch-system-file">
  11. <primary sortas="a-File">File</primary>
  12. </indexterm>
  13. <sect2 role="package">
  14. <title/>
  15. <para>The File package contains a utility for determining the type of a given
  16. file or files.</para>
  17. <segmentedlist>
  18. <segtitle>&buildtime;</segtitle>
  19. <segtitle>&diskspace;</segtitle>
  20. <seglistitem>
  21. <seg>&file-ch6-sbu;</seg>
  22. <seg>&file-ch6-du;</seg>
  23. </seglistitem>
  24. </segmentedlist>
  25. </sect2>
  26. <sect2 role="installation">
  27. <title>Installation of File</title>
  28. <para>Apply a patch to fix a bug caused by an undefined constant:</para>
  29. <screen><userinput>patch -Np1 -i ../&file-reg_startend-patch;</userinput></screen>
  30. <para>Prepare File for compilation:</para>
  31. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  32. <para>Compile the package:</para>
  33. <screen><userinput>make</userinput></screen>
  34. <para>This package does not come with a test suite.</para>
  35. <para>Install the package:</para>
  36. <screen><userinput>make install</userinput></screen>
  37. </sect2>
  38. <sect2 id="contents-file" role="content">
  39. <title>Contents of File</title>
  40. <segmentedlist>
  41. <segtitle>Installed programs</segtitle>
  42. <segtitle>Installed library</segtitle>
  43. <seglistitem>
  44. <seg>file</seg>
  45. <seg>libmagic.{a,so}</seg>
  46. </seglistitem>
  47. </segmentedlist>
  48. <variablelist>
  49. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  50. <?dbfo list-presentation="list"?>
  51. <?dbhtml list-presentation="table"?>
  52. <varlistentry id="file">
  53. <term><command>file</command></term>
  54. <listitem>
  55. <para>Tries to classify each given file; it does this by performing
  56. several tests&mdash;file system tests, magic number tests, and language
  57. tests</para>
  58. <indexterm zone="ch-system-file file">
  59. <primary sortas="b-file">file</primary>
  60. </indexterm>
  61. </listitem>
  62. </varlistentry>
  63. <varlistentry id="libmagic">
  64. <term><filename class="libraryfile">libmagic</filename></term>
  65. <listitem>
  66. <para>Contains routines for magic number recognition, used by the
  67. <command>file</command> program</para>
  68. <indexterm zone="ch-system-file libmagic">
  69. <primary sortas="c-libmagic">libmagic</primary>
  70. </indexterm>
  71. </listitem>
  72. </varlistentry>
  73. </variablelist>
  74. </sect2>
  75. </sect1>