mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
Add new flex script
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1335 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
5a9177490b
commit
1fca9db854
@ -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>
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user