Changeset ef13657 for chapter06/flex.xml
- Timestamp:
- 08/08/2004 02:11:09 AM (20 years ago)
- Branches:
- 6.0
- Children:
- 5ba3d1d
- Parents:
- 6e41459
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/flex.xml
r6e41459 ref13657 34 34 <screen><userinput>patch -Np1 -i ../flex-&flex-version;-debian_fixes-2.patch</userinput></screen> 35 35 36 <para>The GNU autotools detects that the Flex source code has been modified by37 the previous patch, and tries to update the manual page accordingly, but this 38 breaks on many systems, and the default page is fine, so make sure it doesn't 39 get regenerated:</para>36 <para>The GNU autotools detects that the Flex source code has been 37 modified by the previous patch, and tries to update the manual page 38 accordingly. This does not work correctly on many systems, and the 39 default page is fine, so make sure it does not get regenerated:</para> 40 40 41 41 <screen><userinput>touch doc/flex.1</userinput></screen> … … 52 52 <userinput>make check</userinput>.</para> 53 53 54 <para> Now install the package:</para>54 <para>Install the package:</para> 55 55 56 56 <screen><userinput>make install</userinput></screen> 57 57 58 <para>There are some packages that expect to find the <emphasis>lex</emphasis> 59 library in <filename>/usr/lib</filename>. Create a symlink to account for 58 <para>There are some packages that expect to find the 59 <filename>lex</filename> library in <filename 60 class="directory">/usr/lib</filename>. Create a symlink to account for 60 61 this:</para> 61 62 62 63 <screen><userinput>ln -s libfl.a /usr/lib/libl.a</userinput></screen> 63 64 64 <para>A few programs do n't know about <command>flex</command> yet and try65 t o run its predecessor <command>lex</command>. To support those programs,66 create a wrapper script named <filename>lex</filename> that calls 67 <command>flex</command> in <emphasis>lex</emphasis>emulation mode:</para>65 <para>A few programs do not know about <command>flex</command> yet and 66 try to run its predecessor, <command>lex</command>. To support those 67 programs, create a wrapper script named <filename>lex</filename> that 68 calls <filename>flex</filename> in lex emulation mode:</para> 68 69 69 70 <screen><userinput>cat > /usr/bin/lex << "EOF"</userinput> … … 95 96 <listitem> 96 97 <indexterm zone="ch-system-flex flex"><primary sortas="b-flex">flex</primary></indexterm> 97 <para>is a tool for generating programs that 98 recognize patterns in text. Pattern recognition is useful in many applications. 99 From a set of rules on what to look for, <command>flex</command> makes a program that looks for 100 those patterns. The reason to use <command>flex</command> is that it is much easier to specify 101 the rules for a pattern-finding program than to write the program.</para> 98 <para>a tool for generating programs that recognize patterns in text. 99 Pattern recognition is useful in many applications. 100 <application>Flex</application> makes a program that looks for those 101 patterns from a set of established rules. 102 <application>Flex</application> allows for the versatility to specify 103 the rules for a pattern-finding, eradicating the need to develop a 104 specialized program.</para> 102 105 </listitem> 103 106 </varlistentry> … … 115 118 <listitem> 116 119 <indexterm zone="ch-system-flex libfl.a"><primary sortas="c-libfl.a">libfl.a</primary></indexterm> 117 <para> isthe flex library.</para>120 <para>the flex library.</para> 118 121 </listitem> 119 122 </varlistentry> … … 123 126 124 127 </sect1> 128
Note:
See TracChangeset
for help on using the changeset viewer.