From 2ec4b60f359413c6f0163b9e72108c24460573e7 Mon Sep 17 00:00:00 2001 From: Zack Winkles Date: Mon, 7 Jun 2004 19:16:21 +0000 Subject: Normalized usage of sed throughout the book git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3762 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/adjusting.xml | 2 +- chapter05/udev.xml | 4 ++-- chapter05/util-linux.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'chapter05') diff --git a/chapter05/adjusting.xml b/chapter05/adjusting.xml index ae676717e..2cdf60937 100644 --- a/chapter05/adjusting.xml +++ b/chapter05/adjusting.xml @@ -40,7 +40,7 @@ to the new dynamic linker. A simple sed script will accomplish this: SPECFILE=`gcc --print-file specs` && -sed -e 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \ +sed 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \ $SPECFILE > tempspecfile && mv -f tempspecfile $SPECFILE && unset SPECFILE diff --git a/chapter05/udev.xml b/chapter05/udev.xml index 5b38a2baf..35ed76c61 100644 --- a/chapter05/udev.xml +++ b/chapter05/udev.xml @@ -42,12 +42,12 @@ by applying the following patch: which is bad since we install udev in a non-standard location. Fix this by running the following: -sed -i 's:\/sbin\/udev:/tools&:' udevstart.c +sed -i 's@/sbin/udev@/tools/sbin/udev@g' udevstart.c Also assure that udev knows the correct location to look for its configuration files: -sed -i 's:\/etc:/tools&:' etc/udev/udev.conf.in +sed -i 's@/etc@/tools/etc@g' etc/udev/udev.conf.in Now compile Udev: diff --git a/chapter05/util-linux.xml b/chapter05/util-linux.xml index 1f7ab22b1..7561ddd84 100644 --- a/chapter05/util-linux.xml +++ b/chapter05/util-linux.xml @@ -36,7 +36,7 @@ by applying the following patch: from the /tools directory. This is fixed by altering the configure script: -sed -i "s@/usr/include@/tools/include@g" configure +sed -i 's@/usr/include@/tools/include@g' configure Prepare Util-linux for compilation: -- cgit v1.2.3-54-g00ecf