file.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. <sect1info condition="script">
  10. <productname>file</productname>
  11. <productnumber>&file-version;</productnumber>
  12. <address>&file-url;</address>
  13. </sect1info>
  14. <title>File-&file-version;</title>
  15. <indexterm zone="ch-system-file">
  16. <primary sortas="a-File">File</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The File package contains a utility for determining the type of a given
  21. file or files.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&file-ch6-sbu;</seg>
  27. <seg>&file-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of File</title>
  33. <para>Fix the man page so that it will reflect recent changes to the
  34. <parameter>-e</parameter> (<parameter>--exclude</parameter>)
  35. parameter:</para>
  36. <!-- The following sed should not be required after the next version update
  37. as the maintainer has fixed it upstream. -->
  38. <screen><userinput remap="pre">sed -i -e '197,+1d' \
  39. -e '189,+1d' \
  40. -e 's/token$/tokens/' doc/file.man</userinput></screen>
  41. <para>Prepare File for compilation:</para>
  42. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  43. <para>Compile the package:</para>
  44. <screen><userinput remap="make">make</userinput></screen>
  45. <para>To test the results, issue:</para>
  46. <screen><userinput remap="test">make check</userinput></screen>
  47. <para>Install the package:</para>
  48. <screen><userinput remap="install">make install</userinput></screen>
  49. </sect2>
  50. <sect2 id="contents-file" role="content">
  51. <title>Contents of File</title>
  52. <segmentedlist>
  53. <segtitle>Installed programs</segtitle>
  54. <segtitle>Installed library</segtitle>
  55. <seglistitem>
  56. <seg>file</seg>
  57. <seg>libmagic.{a,so}</seg>
  58. </seglistitem>
  59. </segmentedlist>
  60. <variablelist>
  61. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  62. <?dbfo list-presentation="list"?>
  63. <?dbhtml list-presentation="table"?>
  64. <varlistentry id="file">
  65. <term><command>file</command></term>
  66. <listitem>
  67. <para>Tries to classify each given file; it does this by performing
  68. several tests&mdash;file system tests, magic number tests, and language
  69. tests</para>
  70. <indexterm zone="ch-system-file file">
  71. <primary sortas="b-file">file</primary>
  72. </indexterm>
  73. </listitem>
  74. </varlistentry>
  75. <varlistentry id="libmagic">
  76. <term><filename class="libraryfile">libmagic</filename></term>
  77. <listitem>
  78. <para>Contains routines for magic number recognition, used by the
  79. <command>file</command> program</para>
  80. <indexterm zone="ch-system-file libmagic">
  81. <primary sortas="c-libmagic">libmagic</primary>
  82. </indexterm>
  83. </listitem>
  84. </varlistentry>
  85. </variablelist>
  86. </sect2>
  87. </sect1>