source: BOOK/final-system/common/flex.xml@ 926fdd5

sysvinit
Last change on this file since 926fdd5 was b27081c4, checked in by Chris Staub <chris@…>, 9 years ago

Put one configure option per line

  • Property mode set to 100644
File size: 4.6 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-flex" role="wrap">
9 <?dbhtml filename="flex.html"?>
10
11 <title>Flex-&flex-version;</title>
12
13 <indexterm zone="ch-system-flex">
14 <primary sortas="a-Flex">Flex</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Flex package contains a utility for generating programs that
21 recognize patterns in text.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Flex</title>
27
[4bb4b626]28 <para os="a">Prepare Flex for compilation:</para>
[3f8be484]29
[b27081c4]30<screen os="b"><userinput>./configure \
31 --prefix=/usr \
32 --docdir=/usr/share/doc/flex-&flex-version;</userinput></screen>
[3f8be484]33
[4bb4b626]34 <para os="c">Compile the package:</para>
[3f8be484]35
[4bb4b626]36<screen os="d"><userinput>make</userinput></screen>
[3f8be484]37
[686839b]38 <para os="e">To test the results, issue:</para>
39
40<screen os="e2"><userinput remap="test">make check</userinput></screen>
[3f8be484]41
[41a5f16]42 <para os="e3">The test suite will report 3 failures for tests that
43 use <command>bison</command>, which is not installed yet. For full
44 test coverage, you can run Flex's test suite again after Bison
45 is installed.</para>
46
[4bb4b626]47 <para os="f">Install the package:</para>
[3f8be484]48
[4bb4b626]49<screen os="g"><userinput>make install</userinput></screen>
[3f8be484]50
[a62153d]51 <para os="h">A few programs do not know about <command>flex</command> yet and
[3f8be484]52 try to run its predecessor, <command>lex</command>. To support those
53 programs, create a wrapper script named <filename>lex</filename> that
54 calls <filename>flex</filename> in <command>lex</command> emulation
55 mode:</para>
56
[a62153d]57<screen os="i"><userinput>cat &gt; /usr/bin/lex &lt;&lt; "EOF"
[3f8be484]58<literal>#!/bin/sh
59# Begin /usr/bin/lex
60
61exec /usr/bin/flex -l "$@"
62
63# End /usr/bin/lex</literal>
64EOF
[94e6142]65chmod -v 755 /usr/bin/lex</userinput></screen>
[3f8be484]66
67 </sect2>
68
69 <sect2 id="contents-flex" role="content">
70 <title>Contents of Flex</title>
71
72 <segmentedlist>
73 <segtitle>Installed programs</segtitle>
[f5e37b2]74 <segtitle>Installed libraries</segtitle>
[c873165]75 <segtitle>Installed directory</segtitle>
[3f8be484]76
77 <seglistitem>
[c2102b28]78 <seg>flex, flex++ (link to flex), lex</seg>
79 <seg>libfl.[a,so], libfl_pic.[a,so]</seg>
[c873165]80 <seg>/usr/share/doc/flex-&flex-version;</seg>
[3f8be484]81 </seglistitem>
82 </segmentedlist>
83
84 <variablelist>
85 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
86 <?dbfo list-presentation="list"?>
87 <?dbhtml list-presentation="table"?>
88
89 <varlistentry id="flex">
90 <term><command>flex</command></term>
91 <listitem>
92 <para>A tool for generating programs that recognize patterns in text;
93 it allows for the versatility to specify the rules for pattern-finding,
94 eradicating the need to develop a specialized program</para>
95 <indexterm zone="ch-system-flex flex">
96 <primary sortas="b-flex">flex</primary>
97 </indexterm>
98 </listitem>
99 </varlistentry>
100
[2b220db9]101 <varlistentry id="flexpp">
102 <term><command>flex++</command></term>
103 <listitem>
104 <para>Link to <command>flex</command> which makes it generate C++
105 scanner classes</para>
106 <indexterm zone="ch-system-flex flexpp">
107 <primary sortas="b-flex++">flex++</primary>
108 </indexterm>
109 </listitem>
110 </varlistentry>
111
[3f8be484]112 <varlistentry id="lex">
113 <term><command>lex</command></term>
114 <listitem>
115 <para>A script that runs <command>flex</command> in
116 <command>lex</command> emulation mode</para>
117 <indexterm zone="ch-system-flex lex">
118 <primary sortas="b-lex">lex</primary>
119 </indexterm>
120 </listitem>
121 </varlistentry>
122
[06c4516]123 <varlistentry id="libfl">
124 <term><filename class="libraryfile">libfl</filename></term>
[3f8be484]125 <listitem>
126 <para>The <filename class="libraryfile">flex</filename> library</para>
[06c4516]127 <indexterm zone="ch-system-flex libfl">
128 <primary sortas="c-libfl">libfl</primary>
[3f8be484]129 </indexterm>
130 </listitem>
131 </varlistentry>
132
[06c4516]133 <varlistentry id="libfl_pic">
134 <term><filename class="libraryfile">libfl_pic</filename></term>
[8053eec]135 <listitem>
136 <para>The <filename class="libraryfile">flex</filename> library</para>
[06c4516]137 <indexterm zone="ch-system-flex libfl_pic">
138 <primary sortas="c-libfl">libfl_pic</primary>
[8053eec]139 </indexterm>
140 </listitem>
141 </varlistentry>
142
[3f8be484]143 </variablelist>
144
145 </sect2>
146
147</sect1>
Note: See TracBrowser for help on using the repository browser.