From c5368d73fa503070522497734a155de44153bae9 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Tue, 8 Apr 2014 03:02:51 +0000 Subject: Change lex wrappeer script to a symbolic link git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10533 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 7 ++++++- chapter06/flex.xml | 16 ++++------------ 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index edfd137c4..f72aefae8 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -38,6 +38,11 @@ 2014-04-08 + + [bdubbs] - Change lex rwapper script to a symbolic + link. Completes + #3523. + [bdubbs] - Update to linux-3.14. Fixes #3523. @@ -47,7 +52,7 @@ #3526. - [bdubbs] - Update to flex-2.5.39. Fixes + [bdubbs] - Update to flex-2.5.39. Addresses #3527. 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 @@ --> A few programs do not know about flex yet and try to run its predecessor, lex. To support those - programs, create a wrapper script named lex that - calls flex in lex emulation + programs, create a symbolic link named lex that + runs flex in lex emulation mode: -cat > /usr/bin/lex << "EOF" -#!/bin/sh -# Begin /usr/bin/lex - -exec /usr/bin/flex -l "$@" - -# End /usr/bin/lex -EOF -chmod -v 755 /usr/bin/lex +ln -s flex /usr/bin/lex @@ -95,7 +87,7 @@ chmod -v 755 /usr/bin/lex Installed directories - flex, flex++ (link to flex), and lex + flex, flex++ (link to flex), and lex (link to flex) libfl.{a,so} and libfl_pic.{a,so} /usr/share/doc/flex-&flex-version; -- cgit v1.2.3-54-g00ecf