From ad83f72ad8ff3782a03c2bbd97cd746f908c9166 Mon Sep 17 00:00:00 2001 From: Dan Nichilson Date: Tue, 24 Jul 2007 14:48:14 +0000 Subject: Remove extraneous && in chained commands git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8235 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 10 ++++++++++ chapter05/adjusting.xml | 6 +++--- chapter05/gcc-pass2.xml | 4 ++-- chapter06/bash.xml | 2 +- chapter06/db.xml | 2 +- chapter06/man-db.xml | 10 +++++----- chapter06/module-init-tools.xml | 4 ++-- chapter06/ncurses.xml | 14 +++++++------- chapter07/network.xml | 4 ++-- chapter08/grub.xml | 2 +- chapter08/kernel.xml | 2 +- general.ent | 4 ++-- 12 files changed, 37 insertions(+), 27 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 5b4d6e2ca..bb407f9a5 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -36,6 +36,16 @@ --> + + 2007-07-24 + + + [dnicholson] - Remove inconsistent uses of && from + the book. + + + + 2007-07-23 diff --git a/chapter05/adjusting.xml b/chapter05/adjusting.xml index bad013455..0d0c76e56 100644 --- a/chapter05/adjusting.xml +++ b/chapter05/adjusting.xml @@ -66,9 +66,9 @@ ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld their length): -GCC_INCLUDEDIR=`dirname $(gcc -print-libgcc-file-name)`/include && -find ${GCC_INCLUDEDIR}/* -maxdepth 0 -xtype d -exec rm -rvf '{}' \; && -rm -vf `grep -l "DO NOT EDIT THIS FILE" ${GCC_INCLUDEDIR}/*` && +GCC_INCLUDEDIR=`dirname $(gcc -print-libgcc-file-name)`/include +find ${GCC_INCLUDEDIR}/* -maxdepth 0 -xtype d -exec rm -rvf '{}' \; +rm -vf `grep -l "DO NOT EDIT THIS FILE" ${GCC_INCLUDEDIR}/*` unset GCC_INCLUDEDIR diff --git a/chapter05/gcc-pass2.xml b/chapter05/gcc-pass2.xml index 92874a456..fa41bfcf2 100644 --- a/chapter05/gcc-pass2.xml +++ b/chapter05/gcc-pass2.xml @@ -71,7 +71,7 @@ Ask your system administrator to create more. directory. The running of the fixincludes script can be suppressed by issuing the following commands: -cp -v gcc/Makefile.in{,.orig} && +cp -v gcc/Makefile.in{,.orig} sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig > gcc/Makefile.in The bootstrap build performed in @@ -80,7 +80,7 @@ sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig > gcc/Makefile.insed to use it in order to ensure consistent compiler builds: -cp -v gcc/Makefile.in{,.tmp} && +cp -v gcc/Makefile.in{,.tmp} sed 's/^XCFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in.tmp \ > gcc/Makefile.in diff --git a/chapter06/bash.xml b/chapter06/bash.xml index 14208e3c1..ba08418f3 100644 --- a/chapter06/bash.xml +++ b/chapter06/bash.xml @@ -37,7 +37,7 @@ If you downloaded the Bash documentation tarball and wish to install HTML documentation, issue the following commands: -tar -xvf ../bash-doc-&bash-doc-version;.tar.gz && +tar -xvf ../bash-doc-&bash-doc-version;.tar.gz sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-&bash-version;|" \ Makefile.in diff --git a/chapter06/db.xml b/chapter06/db.xml index 93693ac5a..8ff19efb7 100644 --- a/chapter06/db.xml +++ b/chapter06/db.xml @@ -62,7 +62,7 @@ Prepare Berkeley DB for compilation: -cd build_unix && +cd build_unix ../dist/configure --prefix=/usr --enable-compat185 --enable-cxx diff --git a/chapter06/man-db.xml b/chapter06/man-db.xml index cc20e8bad..88ecef994 100644 --- a/chapter06/man-db.xml +++ b/chapter06/man-db.xml @@ -41,10 +41,10 @@ with Man-DB, in order for them to be accessible in both traditional and UTF-8 locales: -mv man/de{_DE.88591,} && -mv man/es{_ES.88591,} && -mv man/it{_IT.88591,} && -mv man/ja{_JP.eucJP,} && +mv man/de{_DE.88591,} +mv man/es{_ES.88591,} +mv man/it{_IT.88591,} +mv man/ja{_JP.eucJP,} sed -i 's,\*_\*,??,' man/Makefile.in The second change is a sed substitution to delete @@ -298,7 +298,7 @@ install -m755 convert-mans /usr/bin () can be installed with the following command: -mkdir -p /usr/share/man/fr && +mkdir -p /usr/share/man/fr cp -rv man? /usr/share/man/fr If upstream distributes manual pages in UTF-8 (i.e., for diff --git a/chapter06/module-init-tools.xml b/chapter06/module-init-tools.xml index 3dcc8bfa2..77228fcbb 100644 --- a/chapter06/module-init-tools.xml +++ b/chapter06/module-init-tools.xml @@ -44,8 +44,8 @@ make distclean command is required to clean up the source tree, as the source gets recompiled as part of the testing process): -./configure && -make check && +./configure +make check make distclean Prepare Module-Init-Tools for compilation: diff --git a/chapter06/ncurses.xml b/chapter06/ncurses.xml index 00d5de42c..a2092bdda 100644 --- a/chapter06/ncurses.xml +++ b/chapter06/ncurses.xml @@ -121,16 +121,16 @@ rm -vf /usr/lib/lib${lib}.so ; \ echo "INPUT(-l${lib}w)" >/usr/lib/lib${lib}.so ; \ ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a ; \ -done && +done ln -sfv libncurses++w.a /usr/lib/libncurses++.a Finally, make sure that old applications that look for -lcurses at build time are still buildable: -echo "INPUT(-lncursesw)" >/usr/lib/libcursesw.so && -ln -sfv libncurses.so /usr/lib/libcurses.so && -ln -sfv libncursesw.a /usr/lib/libcursesw.a && +echo "INPUT(-lncursesw)" >/usr/lib/libcursesw.so +ln -sfv libncurses.so /usr/lib/libcurses.so +ln -sfv libncursesw.a /usr/lib/libcursesw.a ln -sfv libncurses.a /usr/lib/libcurses.a @@ -140,10 +140,10 @@ ln -sfv libncurses.a /usr/lib/libcurses.a of some binary-only application, build them with the following commands: -make distclean && +make distclean ./configure --prefix=/usr --with-shared --without-normal \ - --without-debug --without-cxx-binding && -make sources libs && + --without-debug --without-cxx-binding +make sources libs cp -av lib/lib*.so.5* /usr/lib diff --git a/chapter07/network.xml b/chapter07/network.xml index 7df7ae82e..dc4f05a8f 100644 --- a/chapter07/network.xml +++ b/chapter07/network.xml @@ -109,8 +109,8 @@ The following command creates a sample ipv4 file for the eth0 device: -cd /etc/sysconfig/network-devices && -mkdir -v ifconfig.eth0 && +cd /etc/sysconfig/network-devices +mkdir -v ifconfig.eth0 cat > ifconfig.eth0/ipv4 << "EOF" ONBOOT=yes SERVICE=ipv4-static diff --git a/chapter08/grub.xml b/chapter08/grub.xml index 8374c5719..913ed5f0c 100644 --- a/chapter08/grub.xml +++ b/chapter08/grub.xml @@ -134,7 +134,7 @@ EOF be symlinked to /etc/grub/menu.lst. To satisfy this requirement, issue the following command: -mkdir -v /etc/grub && +mkdir -v /etc/grub ln -sv /boot/grub/menu.lst /etc/grub diff --git a/chapter08/kernel.xml b/chapter08/kernel.xml index 1ba8dfc97..fb6216aef 100644 --- a/chapter08/kernel.xml +++ b/chapter08/kernel.xml @@ -129,7 +129,7 @@ Install the documentation for the Linux kernel: -install -d /usr/share/doc/linux-&linux-version; && +install -d /usr/share/doc/linux-&linux-version; cp -r Documentation/* /usr/share/doc/linux-&linux-version; It is important to note that the files in the kernel source diff --git a/general.ent b/general.ent index c5c3f47d1..aced25c49 100644 --- a/general.ent +++ b/general.ent @@ -1,6 +1,6 @@ - - + + -- cgit v1.2.3-54-g00ecf