aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/flex-inst.xml
diff options
context:
space:
mode:
authorMark Hymers <markh@linuxfromscratch.org>2001-11-06 00:49:29 +0000
committerMark Hymers <markh@linuxfromscratch.org>2001-11-06 00:49:29 +0000
commit1fca9db854d12bfd121e23c33d3204db959d5ad4 (patch)
treed8c1f181798e31462a05fab325e439db8f1e3a9f /chapter06/flex-inst.xml
parent5a9177490b842e16d68b34057bf7a5afe19cf4aa (diff)
Add new flex script
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1335 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/flex-inst.xml')
-rw-r--r--chapter06/flex-inst.xml18
1 files changed, 18 insertions, 0 deletions
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 &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>