Kaynağa Gözat

Add new flex script

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1335 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Mark Hymers 24 yıl önce
ebeveyn
işleme
1fca9db854
3 değiştirilmiş dosya ile 24 ekleme ve 2 silme
  1. 4 0
      chapter01/changelog.xml
  2. 18 0
      chapter06/flex-inst.xml
  3. 2 2
      index.xml

+ 4 - 0
chapter01/changelog.xml

@@ -31,6 +31,10 @@
 
 </para></listitem>
 
+<listitem><para>November 5th, 2001 [markh]: Chapter 6: Created new lex
+script instead of link to flex following comment on lfs-dev.  (This is
+similar to what we do with bison and yacc).</para></listitem>
+
 <listitem><para>October 27th, 2001 [markh]: General: Large XML Tidy-up.
 Shouldn't affect the book text or layout.  If it does, something has
 gone wrong!</para></listitem>

+ 18 - 0
chapter06/flex-inst.xml

@@ -9,5 +9,23 @@ make install &amp;&amp;
 cd /usr/bin &amp;&amp;
 ln -sf flex lex</userinput></screen></para>
 
+<para>Some programs don't know about flex and try to find the lex program
+(flex is a (better) alternative for lex). So to please those few
+programs out there we'll create a lex script that calls flex and have
+it emulate lex.</para>
+
+<para>Create a new file <filename>/usr/bin/lex</filename> by running the
+following:</para>
+
+<para><screen><userinput>cat &gt; /usr/bin/lex &lt;&lt; "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></para>
+
 </sect2>
 

+ 2 - 2
index.xml

@@ -4,8 +4,8 @@
 
 <!ENTITY book SYSTEM "book/book.xml">
 
-<!ENTITY version "20011027">
-<!ENTITY releasedate "October 27th, 2001">
+<!ENTITY version "20011105">
+<!ENTITY releasedate "November 5th, 2001">
 
 <!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
 <!ENTITY http-root "http://ftp.linuxfromscratch.org">