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 @@ +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). + October 27th, 2001 [markh]: General: Large XML Tidy-up. Shouldn't affect the book text or layout. If it does, something has gone wrong! 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 +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. + +Create a new file /usr/bin/lex by running the +following: + +cat > /usr/bin/lex << "EOF" +#!/bin/sh +# Begin /usr/bin/lex + +exec /usr/bin/flex -l "$@" + +# End /usr/bin/lex +EOF +chmod 755 /usr/bin/lex + diff --git a/index.xml b/index.xml index 87cc3c675..36f8f9dbf 100644 --- a/index.xml +++ b/index.xml @@ -4,8 +4,8 @@ - - + +