diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2014-04-08 03:02:51 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2014-04-08 03:02:51 +0000 |
commit | c5368d73fa503070522497734a155de44153bae9 (patch) | |
tree | 953483a88e21f41bc78c1bd93080704a24527ea2 /chapter06 | |
parent | ee648fdd8c25d909111d41e100022faf5512197a (diff) |
Change lex wrappeer script to a symbolic link
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10533 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/flex.xml | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/chapter06/flex.xml b/chapter06/flex.xml index 28d50e9a9..8ad7040a9 100644 --- a/chapter06/flex.xml +++ b/chapter06/flex.xml @@ -70,19 +70,11 @@ --> <para>A few programs do not know about <command>flex</command> yet and try to run its predecessor, <command>lex</command>. To support those - programs, create a wrapper script named <filename>lex</filename> that - calls <filename>flex</filename> in <command>lex</command> emulation + programs, create a symbolic link named <filename>lex</filename> that + runs <filename>flex</filename> in <command>lex</command> emulation mode:</para> -<screen><userinput remap="install">cat > /usr/bin/lex << "EOF" -<literal>#!/bin/sh -# Begin /usr/bin/lex - -exec /usr/bin/flex -l "$@" - -# End /usr/bin/lex</literal> -EOF -chmod -v 755 /usr/bin/lex</userinput></screen> +<screen><userinput remap="install">ln -s flex /usr/bin/lex</userinput></screen> </sect2> @@ -95,7 +87,7 @@ chmod -v 755 /usr/bin/lex</userinput></screen> <segtitle>Installed directories</segtitle> <seglistitem> - <seg>flex, flex++ (link to flex), and lex</seg> + <seg>flex, flex++ (link to flex), and lex (link to flex)</seg> <seg>libfl.{a,so} and libfl_pic.{a,so}</seg> <seg>/usr/share/doc/flex-&flex-version;</seg> </seglistitem> |