gettext.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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-tools-gettext" role="wrap">
  8. <?dbhtml filename="gettext.html"?>
  9. <title>Gettext-&gettext-version;</title>
  10. <indexterm zone="ch-tools-gettext">
  11. <primary sortas="a-Gettext">Gettext</primary>
  12. <secondary>tools</secondary>
  13. </indexterm>
  14. <sect2 role="package">
  15. <title/>
  16. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  17. href="../chapter06/gettext.xml"
  18. xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  19. <segmentedlist>
  20. <segtitle>&buildtime;</segtitle>
  21. <segtitle>&diskspace;</segtitle>
  22. <seglistitem>
  23. <seg>&gettext-ch5-sbu;</seg>
  24. <seg>&gettext-ch5-du;</seg>
  25. </seglistitem>
  26. </segmentedlist>
  27. </sect2>
  28. <sect2 role="installation">
  29. <title>Installation of Gettext</title>
  30. <para>For our temporary set of tools, we only need to build and install
  31. one binary from Gettext.</para>
  32. <para>Prepare Gettext for compilation:</para>
  33. <screen><userinput>cd gettext-tools
  34. ./configure --prefix=/tools --disable-shared</userinput></screen>
  35. <variablelist>
  36. <title>The meaning of the configure option:</title>
  37. <varlistentry>
  38. <term><parameter>--disable-shared</parameter></term>
  39. <listitem>
  40. <para>We do not need to install any of the shared Gettext libraries at
  41. this time, therefore there is no need to build them.</para>
  42. </listitem>
  43. </varlistentry>
  44. </variablelist>
  45. <para>Compile the package:</para>
  46. <screen><userinput>make -C gnulib-lib
  47. make -C src msgfmt</userinput></screen>
  48. <para>As only one binary has been compiled, it is not possible to run the
  49. testsuite without compiling additional support libraries from the Gettext
  50. package. It is therefore not recommended to attempt to run the testsuite at
  51. this stage.</para>
  52. <para>Install the <command>msgfmt</command> binary:</para>
  53. <screen><userinput>cp -v src/msgfmt /tools/bin</userinput></screen>
  54. </sect2>
  55. <sect2 role="content">
  56. <title/>
  57. <para>Details on this package are located in
  58. <xref linkend="contents-gettext" role="."/></para>
  59. </sect2>
  60. </sect1>