[Clfs-commits] [Cross-LFS]Cross-LFS Book branch, sysvinit, updated. clfs-3.0.0-sysvinit-359-g966dad9

git git at clfs.org
Mon May 29 13:54:17 PDT 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cross-LFS Book".

The branch, sysvinit has been updated
       via  966dad90d4ffd5d9db2115516d59ceaa8803a940 (commit)
      from  e1be9a61bf3eaf15d5b3be7ee5f32b5f9a8e198a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 966dad90d4ffd5d9db2115516d59ceaa8803a940
Author: William Harrington <kb0iic at berzerkula.org>
Date:   Mon May 29 15:54:01 2017 -0500

    Use a link instead of a wrapper script for lex.

diff --git a/BOOK/final-system/common/flex.xml b/BOOK/final-system/common/flex.xml
index b776709..95f69db 100644
--- a/BOOK/final-system/common/flex.xml
+++ b/BOOK/final-system/common/flex.xml
@@ -50,19 +50,11 @@
 
     <para os="h">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 os="i"><userinput>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 os="i"><userinput>ln -sv flex /usr/bin/lex</userinput></screen>
 
   </sect2>
 

-----------------------------------------------------------------------

Summary of changes:
 BOOK/final-system/common/flex.xml |   14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)


hooks/post-receive
-- 
Cross-LFS Book



More information about the Clfs-commits mailing list