Ignore:
Timestamp:
May 29, 2017, 1:54:01 PM (7 years ago)
Author:
William Harrington <kb0iic@…>
Branches:
master, systemd
Children:
b1a2d5e
Parents:
4a0e13c
Message:

Use a link instead of a wrapper script for lex.

File:
1 edited

Legend:

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

    r4a0e13c r988dedf  
    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.