source: BOOK/final-system/common/flex.xml@ 5f80049

sysvinit
Last change on this file since 5f80049 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
Line 
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
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
28 <para os="a">Prepare Flex for compilation:</para>
29
30<screen os="b"><userinput>./configure \
31 --prefix=/usr \
32 --docdir=/usr/share/doc/flex-&flex-version;</userinput></screen>
33
34 <para os="c">Compile the package:</para>
35
36<screen os="d"><userinput>make</userinput></screen>
37
38 <para os="e">To test the results, issue:</para>
39
40<screen os="e2"><userinput remap="test">make check</userinput></screen>
41
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
47 <para os="f">Install the package:</para>
48
49<screen os="g"><userinput>make install</userinput></screen>
50
51 <para os="h">A few programs do not know about <command>flex</command> yet and
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
57<screen os="i"><userinput>cat &gt; /usr/bin/lex &lt;&lt; "EOF"
58<literal>#!/bin/sh
59# Begin /usr/bin/lex
60
61exec /usr/bin/flex -l "$@"
62
63# End /usr/bin/lex</literal>
64EOF
65chmod -v 755 /usr/bin/lex</userinput></screen>
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>
74 <segtitle>Installed libraries</segtitle>
75 <segtitle>Installed directory</segtitle>
76
77 <seglistitem>
78 <seg>flex, flex++ (link to flex), lex</seg>
79 <seg>libfl.[a,so], libfl_pic.[a,so]</seg>
80 <seg>/usr/share/doc/flex-&flex-version;</seg>
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
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
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
123 <varlistentry id="libfl">
124 <term><filename class="libraryfile">libfl</filename></term>
125 <listitem>
126 <para>The <filename class="libraryfile">flex</filename> library</para>
127 <indexterm zone="ch-system-flex libfl">
128 <primary sortas="c-libfl">libfl</primary>
129 </indexterm>
130 </listitem>
131 </varlistentry>
132
133 <varlistentry id="libfl_pic">
134 <term><filename class="libraryfile">libfl_pic</filename></term>
135 <listitem>
136 <para>The <filename class="libraryfile">flex</filename> library</para>
137 <indexterm zone="ch-system-flex libfl_pic">
138 <primary sortas="c-libfl">libfl_pic</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 </variablelist>
144
145 </sect2>
146
147</sect1>
Note: See TracBrowser for help on using the repository browser.