flex.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-flex" xreflabel="Flex" role="wrap">
  7. <title>Flex-&flex-version;</title>
  8. <?dbhtml filename="flex.html"?>
  9. <indexterm zone="ch-system-flex"><primary sortas="a-Flex">Flex</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <segmentedlist>
  12. <segtitle>&buildtime;</segtitle>
  13. <segtitle>&diskspace;</segtitle>
  14. <seglistitem><seg>0.1 SBU</seg><seg>3.4 MB</seg></seglistitem>
  15. </segmentedlist>
  16. </sect2>
  17. <sect2 role="installation">
  18. <title>Installation of Flex</title>
  19. <para>Apply a patch:</para>
  20. <screen><userinput>patch -Np1 -i ../flex-&flex-version;-debian_fixes-2.patch</userinput></screen>
  21. <para>Touch the man-page:</para>
  22. <screen><userinput>touch doc/flex.1</userinput></screen>
  23. <para>Now prepare Flex for compilation:</para>
  24. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  25. <para>Compile the package:</para>
  26. <screen><userinput>make</userinput></screen>
  27. <para>To test the results, issue:
  28. <userinput>make check</userinput>.</para>
  29. <para>Now install the package:</para>
  30. <screen><userinput>make install</userinput></screen>
  31. <para>Create a symlink:</para>
  32. <screen><userinput>ln -s libfl.a /usr/lib/libl.a</userinput></screen>
  33. <para>Create a lex script:</para>
  34. <screen><userinput>cat &gt; /usr/bin/lex &lt;&lt; "EOF"</userinput>
  35. #!/bin/sh
  36. # Begin /usr/bin/lex
  37. exec /usr/bin/flex -l "$@"
  38. # End /usr/bin/lex
  39. <userinput>EOF
  40. chmod 755 /usr/bin/lex</userinput></screen>
  41. </sect2>
  42. <sect2 id="contents-flex" role="content"><title>Contents of Flex</title>
  43. <para>See testing</para>
  44. </sect2>
  45. </sect1>