diff options
author | Mark Hymers <markh@linuxfromscratch.org> | 2001-11-06 00:49:29 +0000 |
---|---|---|
committer | Mark Hymers <markh@linuxfromscratch.org> | 2001-11-06 00:49:29 +0000 |
commit | 1fca9db854d12bfd121e23c33d3204db959d5ad4 (patch) | |
tree | d8c1f181798e31462a05fab325e439db8f1e3a9f | |
parent | 5a9177490b842e16d68b34057bf7a5afe19cf4aa (diff) |
Add new flex script
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1335 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r-- | chapter01/changelog.xml | 4 | ||||
-rw-r--r-- | chapter06/flex-inst.xml | 18 | ||||
-rw-r--r-- | index.xml | 4 |
3 files changed, 24 insertions, 2 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index c49638195..ce50d628b 100644 --- a/chapter01/changelog.xml +++ b/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> diff --git a/chapter06/flex-inst.xml b/chapter06/flex-inst.xml index a6dcbaf90..839461e76 100644 --- a/chapter06/flex-inst.xml +++ b/chapter06/flex-inst.xml @@ -9,5 +9,23 @@ make install && cd /usr/bin && 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 > /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></para> + </sect2> @@ -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"> |