12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
- <!ENTITY % general-entities SYSTEM "../general.ent">
- %general-entities;
- ]>
- <sect1 id="ch-system-flex" xreflabel="Flex" role="wrap">
- <title>Flex-&flex-version;</title>
- <?dbhtml filename="flex.html"?>
- <indexterm zone="ch-system-flex"><primary sortas="a-Flex">Flex</primary></indexterm>
- <sect2 role="package"><title/>
- <segmentedlist>
- <segtitle>&buildtime;</segtitle>
- <segtitle>&diskspace;</segtitle>
- <seglistitem><seg>0.1 SBU</seg><seg>3.4 MB</seg></seglistitem>
- </segmentedlist>
- </sect2>
- <sect2 role="installation">
- <title>Installation of Flex</title>
- <para>Apply a patch:</para>
- <screen><userinput>patch -Np1 -i ../flex-&flex-version;-debian_fixes-2.patch</userinput></screen>
- <para>Touch the man-page:</para>
- <screen><userinput>touch doc/flex.1</userinput></screen>
- <para>Now prepare Flex for compilation:</para>
- <screen><userinput>./configure --prefix=/usr</userinput></screen>
- <para>Compile the package:</para>
- <screen><userinput>make</userinput></screen>
- <para>To test the results, issue:
- <userinput>make check</userinput>.</para>
- <para>Now install the package:</para>
- <screen><userinput>make install</userinput></screen>
- <para>Create a symlink:</para>
- <screen><userinput>ln -s libfl.a /usr/lib/libl.a</userinput></screen>
- <para>Create a lex script:</para>
- <screen><userinput>cat > /usr/bin/lex << "EOF"</userinput>
- #!/bin/sh
- # Begin /usr/bin/lex
- exec /usr/bin/flex -l "$@"
- # End /usr/bin/lex
- <userinput>EOF
- chmod 755 /usr/bin/lex</userinput></screen>
- </sect2>
- <sect2 id="contents-flex" role="content"><title>Contents of Flex</title>
- <para>See testing</para>
- </sect2>
- </sect1>
|