Ignore:
Timestamp:
May 29, 2017, 1:54:03 PM (8 years ago)
Author:
William Harrington <kb0iic@…>
Branches:
sysvinit
Children:
110500e
Parents:
e1be9a61
git-author:
William Harrington <kb0iic@…> (05/29/17 13:54:01)
git-committer:
William Harrington <kb0iic@…> (05/29/17 13:54:03)
Message:

Use a link instead of a wrapper script for lex.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/flex.xml

    re1be9a61 r966dad90  
    5151    <para os="h">A few programs do not know about <command>flex</command> yet and
    5252    try to run its predecessor, <command>lex</command>. To support those
    53     programs, create a wrapper script named <filename>lex</filename> that
    54     calls <filename>flex</filename> in <command>lex</command> emulation
     53    programs, create a symbolic link named <filename>lex</filename> that
     54    runs <filename>flex</filename> in <command>lex</command> emulation
    5555    mode:</para>
    5656
    57 <screen os="i"><userinput>cat &gt; /usr/bin/lex &lt;&lt; "EOF"
    58 <literal>#!/bin/sh
    59 # Begin /usr/bin/lex
    60 
    61 exec /usr/bin/flex -l "$@"
    62 
    63 # End /usr/bin/lex</literal>
    64 EOF
    65 chmod -v 755 /usr/bin/lex</userinput></screen>
     57<screen os="i"><userinput>ln -sv flex /usr/bin/lex</userinput></screen>
    6658
    6759  </sect2>
Note: See TracChangeset for help on using the changeset viewer.