From e07be520145730eb14cef2845c7d906298cdf1b7 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Tue, 13 Apr 2021 12:59:10 -0500 Subject: Add set -e to top of scripts and remove space between -j and value in MAKEFLAGS. --- chapter6/backup.sh | 1 + chapter6/bash.sh | 1 + chapter6/binutils.sh | 1 + chapter6/cleanup.sh | 8 ++++---- chapter6/coreutils.sh | 1 + chapter6/diffutils.sh | 1 + chapter6/file.sh | 1 + chapter6/findutils.sh | 1 + chapter6/gawk.sh | 1 + chapter6/gcc.sh | 1 + chapter6/grep.sh | 1 + chapter6/gzip.sh | 1 + chapter6/m4.sh | 1 + chapter6/make.sh | 1 + chapter6/ncurses.sh | 1 + chapter6/patch.sh | 1 + chapter6/sed.sh | 1 + chapter6/tar.sh | 1 + chapter6/xz.sh | 1 + 19 files changed, 22 insertions(+), 4 deletions(-) (limited to 'chapter6') diff --git a/chapter6/backup.sh b/chapter6/backup.sh index 43e8b18..837c44c 100644 --- a/chapter6/backup.sh +++ b/chapter6/backup.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e file="${LFS_VER}-ch6-backup.tar.xz" directories=(bin etc lib lib64 sbin tools usr var) diff --git a/chapter6/bash.sh b/chapter6/bash.sh index c920026..9251a89 100644 --- a/chapter6/bash.sh +++ b/chapter6/bash.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e patch -Np1 -i ../bash-"${VERSION}"-fixes-1.patch && ./configure --prefix=/usr \ diff --git a/chapter6/binutils.sh b/chapter6/binutils.sh index 9b97c4b..3e4af1d 100644 --- a/chapter6/binutils.sh +++ b/chapter6/binutils.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e mkdir -v build cd build || exit 1 diff --git a/chapter6/cleanup.sh b/chapter6/cleanup.sh index f0b9ce3..0eb80a2 100644 --- a/chapter6/cleanup.sh +++ b/chapter6/cleanup.sh @@ -14,10 +14,10 @@ else rm -rfv "${LFS}"/usr/share/info rm -rfv "${LFS}"/usr/share/man - strip --strip-debug "${LFS}"/usr/lib/* - strip --strip-unneeded "${LFS}"/usr/bin/* - strip --strip-unneeded "${LFS}"/usr/sbin/* - strip --strip-unneeded "${LFS}"/tools/bin/* + strip --strip-debug "${LFS}"/usr/lib/* + strip --strip-unneeded "${LFS}"/usr/bin/* + strip --strip-unneeded "${LFS}"/usr/sbin/* + strip --strip-unneeded "${LFS}"/tools/bin/* } >"${LFS}"/sources/log/chapter6/cleanup.log 2>&1 diff --git a/chapter6/coreutils.sh b/chapter6/coreutils.sh index 536fa52..5231b45 100644 --- a/chapter6/coreutils.sh +++ b/chapter6/coreutils.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --host="${LFS_TGT}" \ diff --git a/chapter6/diffutils.sh b/chapter6/diffutils.sh index f6c45af..580d795 100644 --- a/chapter6/diffutils.sh +++ b/chapter6/diffutils.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e sed 's/help2man -i/help2man --no-discard-stderr -i /' -i man/Makefile.in HELP2MAN="help2man --no-discard-stderr" ./configure --prefix=/usr \ diff --git a/chapter6/file.sh b/chapter6/file.sh index 4f1f294..69c17d8 100644 --- a/chapter6/file.sh +++ b/chapter6/file.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e mkdir build pushd build > /dev/null || exit 1 diff --git a/chapter6/findutils.sh b/chapter6/findutils.sh index 0526c41..5617c10 100644 --- a/chapter6/findutils.sh +++ b/chapter6/findutils.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e # shellcheck disable=SC2016 ./configure --prefix=/usr \ diff --git a/chapter6/gawk.sh b/chapter6/gawk.sh index 29d7a8b..1d18cdc 100644 --- a/chapter6/gawk.sh +++ b/chapter6/gawk.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e sed -i 's/extras//' Makefile.in && ./configure --prefix=/usr \ diff --git a/chapter6/gcc.sh b/chapter6/gcc.sh index 881d200..7806d3a 100644 --- a/chapter6/gcc.sh +++ b/chapter6/gcc.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e mkdir -p isl mpfr gmp mpc tar -xf ../isl-*.tar.xz -C isl --strip-components=1 diff --git a/chapter6/grep.sh b/chapter6/grep.sh index 9aab0f4..7aaa38a 100644 --- a/chapter6/grep.sh +++ b/chapter6/grep.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --host="${LFS_TGT}" \ diff --git a/chapter6/gzip.sh b/chapter6/gzip.sh index f894df6..d8a45c7 100644 --- a/chapter6/gzip.sh +++ b/chapter6/gzip.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --host="${LFS_TGT}" && diff --git a/chapter6/m4.sh b/chapter6/m4.sh index 2f67ebe..aeb1024 100644 --- a/chapter6/m4.sh +++ b/chapter6/m4.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c && echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h && diff --git a/chapter6/make.sh b/chapter6/make.sh index 4de06b6..0b2ace4 100644 --- a/chapter6/make.sh +++ b/chapter6/make.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --without-guile \ diff --git a/chapter6/ncurses.sh b/chapter6/ncurses.sh index 6320a9f..1bf8824 100644 --- a/chapter6/ncurses.sh +++ b/chapter6/ncurses.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e sed -i s/mawk// configure && diff --git a/chapter6/patch.sh b/chapter6/patch.sh index fa1dac9..42add5e 100644 --- a/chapter6/patch.sh +++ b/chapter6/patch.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --host="${LFS_TGT}" \ diff --git a/chapter6/sed.sh b/chapter6/sed.sh index 9aab0f4..7aaa38a 100644 --- a/chapter6/sed.sh +++ b/chapter6/sed.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --host="${LFS_TGT}" \ diff --git a/chapter6/tar.sh b/chapter6/tar.sh index 730d108..28aea9c 100644 --- a/chapter6/tar.sh +++ b/chapter6/tar.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --host="${LFS_TGT}" \ diff --git a/chapter6/xz.sh b/chapter6/xz.sh index 6766de1..a519ebd 100644 --- a/chapter6/xz.sh +++ b/chapter6/xz.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ./configure --prefix=/usr \ --host="${LFS_TGT}" \ -- cgit v1.2.3-54-g00ecf From e5cb063449df5491af4861744b80c6ea40e7cac3 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Wed, 14 Apr 2021 16:36:54 -0500 Subject: Use set -e --- chapter6/cleanup.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'chapter6') diff --git a/chapter6/cleanup.sh b/chapter6/cleanup.sh index 0eb80a2..748c0cc 100644 --- a/chapter6/cleanup.sh +++ b/chapter6/cleanup.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e if [ -f "${LFS}/sources/chapter6/cleanup" ]; then printf "%b" " ${IGRN}Cleanup already performed${RST}\n" @@ -8,16 +9,16 @@ else { find "${LFS}"/usr/lib -name \*.la -delete - find "${LFS}"/usr/libexec -name \*.la -delete + find "${LFS}"/usr/libexec -name \*.la -delete - rm -rfv "${LFS}"/usr/share/doc - rm -rfv "${LFS}"/usr/share/info - rm -rfv "${LFS}"/usr/share/man + rm -rfv "${LFS}"/usr/share/doc + rm -rfv "${LFS}"/usr/share/info + rm -rfv "${LFS}"/usr/share/man - strip --strip-debug "${LFS}"/usr/lib/* - strip --strip-unneeded "${LFS}"/usr/bin/* - strip --strip-unneeded "${LFS}"/usr/sbin/* - strip --strip-unneeded "${LFS}"/tools/bin/* + strip --strip-debug "${LFS}"/usr/lib/* || true + strip --strip-unneeded "${LFS}"/usr/bin/* || true + strip --strip-unneeded "${LFS}"/usr/sbin/* || true + strip --strip-unneeded "${LFS}"/tools/bin/* || true } >"${LFS}"/sources/log/chapter6/cleanup.log 2>&1 -- cgit v1.2.3-54-g00ecf From d6de6e3bc5bc4d5f3c8799df33d876116bddef14 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Wed, 14 Apr 2021 16:37:15 -0500 Subject: Use AND lists and remove set -e --- chapter10/linux.sh | 3 +-- chapter5/binutils.sh | 1 - chapter5/gcc.sh | 1 - chapter5/glibc.sh | 1 - chapter5/libstdc++.sh | 1 - chapter5/linux-api-headers.sh | 1 - chapter6/bash.sh | 1 - chapter6/binutils.sh | 1 - chapter6/coreutils.sh | 1 - chapter6/diffutils.sh | 1 - chapter6/file.sh | 5 ++--- chapter6/findutils.sh | 1 - chapter6/gawk.sh | 1 - chapter6/gcc.sh | 9 ++++----- chapter6/grep.sh | 1 - chapter6/gzip.sh | 1 - chapter6/m4.sh | 1 - chapter6/make.sh | 1 - chapter6/ncurses.sh | 1 - chapter6/patch.sh | 1 - chapter6/sed.sh | 1 - chapter6/tar.sh | 1 - chapter6/xz.sh | 1 - chapter7/bison.sh | 1 - chapter7/gettext.sh | 7 +++---- chapter7/libstdc++.sh | 3 +-- chapter7/perl.sh | 1 - chapter7/python.sh | 1 - chapter7/texinfo.sh | 1 - chapter7/util-linux.sh | 1 - chapter8/acl.sh | 9 ++++----- chapter8/attr.sh | 9 ++++----- chapter8/autoconf.sh | 5 ++--- chapter8/automake.sh | 7 +++---- chapter8/bash.sh | 14 +++++++------- chapter8/bc.sh | 6 +++--- chapter8/binutils.sh | 9 ++++----- chapter8/bison.sh | 5 ++--- chapter8/bzip2.sh | 29 ++++++++++++++--------------- chapter8/check.sh | 5 ++--- chapter8/coreutils.sh | 26 ++++++++++++-------------- chapter8/dejagnu.sh | 11 +++++------ chapter8/diffutils.sh | 5 ++--- chapter8/e2fsprogs.sh | 17 ++++++++--------- chapter8/eudev.sh | 15 +++++++-------- chapter8/expat.sh | 7 +++---- chapter8/expect.sh | 7 +++---- chapter8/file.sh | 9 ++++----- chapter8/findutils.sh | 13 +++++++------ chapter8/flex.sh | 7 +++---- chapter8/gawk.sh | 9 ++++----- chapter8/gcc.sh | 33 ++++++++++++++++----------------- chapter8/gdbm.sh | 5 ++--- chapter8/gettext.sh | 7 +++---- chapter8/glibc.sh | 38 +++++++++++++++++++------------------- chapter8/gmp.sh | 9 ++++----- chapter8/gperf.sh | 5 ++--- chapter8/grep.sh | 5 ++--- chapter8/groff.sh | 5 ++--- chapter8/grub.sh | 9 ++++----- chapter8/gzip.sh | 7 +++---- chapter8/iana-etc.sh | 1 - chapter8/inetutils.sh | 9 ++++----- chapter8/intltool.sh | 9 ++++----- chapter8/iproute2.sh | 9 ++++----- chapter8/isl.sh | 9 ++++----- chapter8/kbd.sh | 15 +++++++-------- chapter8/kmod.sh | 7 +++---- chapter8/less.sh | 5 ++--- chapter8/libcap.sh | 11 +++++------ chapter8/libelf.sh | 9 ++++----- chapter8/libffi.sh | 5 ++--- chapter8/libpipeline.sh | 5 ++--- chapter8/libtool.sh | 7 +++---- chapter8/m4.sh | 9 ++++----- chapter8/make.sh | 5 ++--- chapter8/man-db.sh | 5 ++--- chapter8/man-pages.sh | 1 - chapter8/meson.sh | 9 ++++----- chapter8/mpc.sh | 9 ++++----- chapter8/mpfr.sh | 9 ++++----- chapter8/ncurses.sh | 25 ++++++++++++------------- chapter8/ninja.sh | 9 ++++----- chapter8/openssl.sh | 11 +++++------ chapter8/patch.sh | 5 ++--- chapter8/perl.sh | 7 +++---- chapter8/pkg-config.sh | 5 ++--- chapter8/procps-ng.sh | 9 ++++----- chapter8/psmisc.sh | 9 ++++----- chapter8/python.sh | 11 +++++------ chapter8/readline.sh | 17 ++++++++--------- chapter8/sed.sh | 11 +++++------ chapter8/shadow.sh | 25 ++++++++++++------------- chapter8/sysklogd.sh | 9 ++++----- chapter8/sysvinit.sh | 5 ++--- chapter8/tar.sh | 7 +++---- chapter8/tcl.sh | 21 ++++++++++----------- chapter8/texinfo.sh | 7 +++---- chapter8/util-linux.sh | 5 ++--- chapter8/vim.sh | 13 ++++++------- chapter8/xml-parser.sh | 5 ++--- chapter8/xz.sh | 11 +++++------ chapter8/zlib.sh | 11 +++++------ chapter8/zstd.sh | 9 ++++----- 104 files changed, 347 insertions(+), 447 deletions(-) (limited to 'chapter6') diff --git a/chapter10/linux.sh b/chapter10/linux.sh index 8baea23..143c692 100644 --- a/chapter10/linux.sh +++ b/chapter10/linux.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e make mrproper && cp -v ../kernelconfig .config && @@ -11,4 +10,4 @@ cp -iv System.map /boot/System.map-"${VERSION}" && cp -iv .config /boot/config-"${VERSION}" && install -dv /usr/share/doc/linux-"${VERSION}" && -cp -rv Documentation/* /usr/share/doc/linux-"${VRSION}" +cp -rv Documentation/* /usr/share/doc/linux-"${VERSION}" diff --git a/chapter5/binutils.sh b/chapter5/binutils.sh index 5176d0c..2d9da5b 100644 --- a/chapter5/binutils.sh +++ b/chapter5/binutils.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e mkdir build cd build || exit 1 diff --git a/chapter5/gcc.sh b/chapter5/gcc.sh index 84879c5..52079a4 100644 --- a/chapter5/gcc.sh +++ b/chapter5/gcc.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e mkdir -p mpfr gmp mpc tar -xf ../mpfr-*.tar.xz -C mpfr --strip-components=1 diff --git a/chapter5/glibc.sh b/chapter5/glibc.sh index 7f52023..edab0d3 100644 --- a/chapter5/glibc.sh +++ b/chapter5/glibc.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e case $(uname -m) in i?86) ln -sfv ld-linux.so.2 "${LFS}"/lib/ld-lsb.so.3 diff --git a/chapter5/libstdc++.sh b/chapter5/libstdc++.sh index d8cb707..d1be7dd 100644 --- a/chapter5/libstdc++.sh +++ b/chapter5/libstdc++.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e mkdir -v build cd build || exit 1 diff --git a/chapter5/linux-api-headers.sh b/chapter5/linux-api-headers.sh index 41d7cfc..3111625 100644 --- a/chapter5/linux-api-headers.sh +++ b/chapter5/linux-api-headers.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e make mrproper && make headers && diff --git a/chapter6/bash.sh b/chapter6/bash.sh index 9251a89..c920026 100644 --- a/chapter6/bash.sh +++ b/chapter6/bash.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e patch -Np1 -i ../bash-"${VERSION}"-fixes-1.patch && ./configure --prefix=/usr \ diff --git a/chapter6/binutils.sh b/chapter6/binutils.sh index 3e4af1d..9b97c4b 100644 --- a/chapter6/binutils.sh +++ b/chapter6/binutils.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e mkdir -v build cd build || exit 1 diff --git a/chapter6/coreutils.sh b/chapter6/coreutils.sh index 5231b45..536fa52 100644 --- a/chapter6/coreutils.sh +++ b/chapter6/coreutils.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --host="${LFS_TGT}" \ diff --git a/chapter6/diffutils.sh b/chapter6/diffutils.sh index 580d795..f6c45af 100644 --- a/chapter6/diffutils.sh +++ b/chapter6/diffutils.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e sed 's/help2man -i/help2man --no-discard-stderr -i /' -i man/Makefile.in HELP2MAN="help2man --no-discard-stderr" ./configure --prefix=/usr \ diff --git a/chapter6/file.sh b/chapter6/file.sh index 69c17d8..bd51747 100644 --- a/chapter6/file.sh +++ b/chapter6/file.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e mkdir build pushd build > /dev/null || exit 1 @@ -15,7 +14,7 @@ popd > /dev/null || exit 1 --host="${LFS_TGT}" \ --build="$(./config.guess)" && make FILE_COMPILE="$(pwd)"/build/src/file && -make DESTDIR="${LFS}" -j1 install +make DESTDIR="${LFS}" -j1 install && -mv -v "${LFS}"/usr/lib/libmagic.so.* "${LFS}"/lib +mv -v "${LFS}"/usr/lib/libmagic.so.* "${LFS}"/lib && ln -sfv ../../lib/"$(readlink /usr/lib/libmagic.so)" "${LFS}"/usr/lib/libmagic.so diff --git a/chapter6/findutils.sh b/chapter6/findutils.sh index 5617c10..0526c41 100644 --- a/chapter6/findutils.sh +++ b/chapter6/findutils.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e # shellcheck disable=SC2016 ./configure --prefix=/usr \ diff --git a/chapter6/gawk.sh b/chapter6/gawk.sh index 1d18cdc..29d7a8b 100644 --- a/chapter6/gawk.sh +++ b/chapter6/gawk.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e sed -i 's/extras//' Makefile.in && ./configure --prefix=/usr \ diff --git a/chapter6/gcc.sh b/chapter6/gcc.sh index 7806d3a..d40a855 100644 --- a/chapter6/gcc.sh +++ b/chapter6/gcc.sh @@ -1,11 +1,10 @@ #!/bin/bash -set -e mkdir -p isl mpfr gmp mpc -tar -xf ../isl-*.tar.xz -C isl --strip-components=1 -tar -xf ../mpfr-*.tar.xz -C mpfr --strip-components=1 -tar -xf ../gmp-*.tar.xz -C gmp --strip-components=1 -tar -xf ../mpc-*.tar.gz -C mpc --strip-components=1 +tar -xf ../isl-*.tar.xz -C isl --strip-components=1 && +tar -xf ../mpfr-*.tar.xz -C mpfr --strip-components=1 && +tar -xf ../gmp-*.tar.xz -C gmp --strip-components=1 && +tar -xf ../mpc-*.tar.gz -C mpc --strip-components=1 && case $(uname -m) in x86_64) diff --git a/chapter6/grep.sh b/chapter6/grep.sh index 7aaa38a..9aab0f4 100644 --- a/chapter6/grep.sh +++ b/chapter6/grep.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --host="${LFS_TGT}" \ diff --git a/chapter6/gzip.sh b/chapter6/gzip.sh index d8a45c7..f894df6 100644 --- a/chapter6/gzip.sh +++ b/chapter6/gzip.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --host="${LFS_TGT}" && diff --git a/chapter6/m4.sh b/chapter6/m4.sh index aeb1024..2f67ebe 100644 --- a/chapter6/m4.sh +++ b/chapter6/m4.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c && echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h && diff --git a/chapter6/make.sh b/chapter6/make.sh index 0b2ace4..4de06b6 100644 --- a/chapter6/make.sh +++ b/chapter6/make.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --without-guile \ diff --git a/chapter6/ncurses.sh b/chapter6/ncurses.sh index 1bf8824..6320a9f 100644 --- a/chapter6/ncurses.sh +++ b/chapter6/ncurses.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e sed -i s/mawk// configure && diff --git a/chapter6/patch.sh b/chapter6/patch.sh index 42add5e..fa1dac9 100644 --- a/chapter6/patch.sh +++ b/chapter6/patch.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --host="${LFS_TGT}" \ diff --git a/chapter6/sed.sh b/chapter6/sed.sh index 7aaa38a..9aab0f4 100644 --- a/chapter6/sed.sh +++ b/chapter6/sed.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --host="${LFS_TGT}" \ diff --git a/chapter6/tar.sh b/chapter6/tar.sh index 28aea9c..730d108 100644 --- a/chapter6/tar.sh +++ b/chapter6/tar.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --host="${LFS_TGT}" \ diff --git a/chapter6/xz.sh b/chapter6/xz.sh index a519ebd..6766de1 100644 --- a/chapter6/xz.sh +++ b/chapter6/xz.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --host="${LFS_TGT}" \ diff --git a/chapter7/bison.sh b/chapter7/bison.sh index 9de734e..2385d22 100644 --- a/chapter7/bison.sh +++ b/chapter7/bison.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e ./configure --prefix=/usr --docdir=/usr/share/doc/bison-"${VERSION}" && make && diff --git a/chapter7/gettext.sh b/chapter7/gettext.sh index b1dca1c..696cf25 100644 --- a/chapter7/gettext.sh +++ b/chapter7/gettext.sh @@ -1,8 +1,7 @@ #!/bin/bash -set -e -./configure --disable-shared +./configure --disable-shared && make && -cp -v gettext-tools/src/msgfmt /usr/bin -cp -v gettext-tools/src/msgmerge /usr/bin +cp -v gettext-tools/src/msgfmt /usr/bin && +cp -v gettext-tools/src/msgmerge /usr/bin && cp -v gettext-tools/src/xgettext /usr/bin diff --git a/chapter7/libstdc++.sh b/chapter7/libstdc++.sh index 87c89b7..de3a6b4 100644 --- a/chapter7/libstdc++.sh +++ b/chapter7/libstdc++.sh @@ -1,7 +1,6 @@ #!/bin/bash -set -e -ln -s gthr-posix.h libgcc/gthr-default.h +ln -s gthr-posix.h libgcc/gthr-default.h && mkdir build cd build || exit 1 ../libstdc++-v3/configure \ diff --git a/chapter7/perl.sh b/chapter7/perl.sh index 627e3e5..970e17c 100644 --- a/chapter7/perl.sh +++ b/chapter7/perl.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e MAJMIN="$(cut -d\. -f1,2 <<< "${VERSION}")" diff --git a/chapter7/python.sh b/chapter7/python.sh index 428beaa..daf1677 100644 --- a/chapter7/python.sh +++ b/chapter7/python.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --enable-shared \ diff --git a/chapter7/texinfo.sh b/chapter7/texinfo.sh index b3bba9e..1935156 100644 --- a/chapter7/texinfo.sh +++ b/chapter7/texinfo.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e ./configure --prefix=/usr && make && diff --git a/chapter7/util-linux.sh b/chapter7/util-linux.sh index e0241fa..7a00c8c 100644 --- a/chapter7/util-linux.sh +++ b/chapter7/util-linux.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e mkdir -p /var/lib/hwclock && ./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ diff --git a/chapter8/acl.sh b/chapter8/acl.sh index a82a047..57b6dd8 100644 --- a/chapter8/acl.sh +++ b/chapter8/acl.sh @@ -1,14 +1,13 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --bindir=/bin \ --disable-static \ --libexecdir=/usr/lib \ - --docdir=/usr/share/doc/acl-"${VERSION}" + --docdir=/usr/share/doc/acl-"${VERSION}" && -make -make -j1 install +make && +make -j1 install && -mv -v /usr/lib/libacl.so.* /lib +mv -v /usr/lib/libacl.so.* /lib && ln -sfv ../../lib/"$(readlink /usr/lib/libacl.so)" /usr/lib/libacl.so diff --git a/chapter8/attr.sh b/chapter8/attr.sh index aede208..22e7b79 100644 --- a/chapter8/attr.sh +++ b/chapter8/attr.sh @@ -1,14 +1,13 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --bindir=/bin \ --disable-static \ --sysconfdir=/etc \ - --docdir=/usr/share/doc/attr-"${VERSION}" + --docdir=/usr/share/doc/attr-"${VERSION}" && -make -make -j1 install +make && +make -j1 install && -mv -v /usr/lib/libattr.so.* /lib +mv -v /usr/lib/libattr.so.* /lib && ln -sfv ../../lib/"$(readlink /usr/lib/libattr.so)" /usr/lib/libattr.so diff --git a/chapter8/autoconf.sh b/chapter8/autoconf.sh index 80e5dae..1f6d045 100644 --- a/chapter8/autoconf.sh +++ b/chapter8/autoconf.sh @@ -1,8 +1,7 @@ #!/bin/bash -set -e -./configure --prefix=/usr +./configure --prefix=/usr && -make +make && make -j1 install diff --git a/chapter8/automake.sh b/chapter8/automake.sh index 280e5fe..73615bf 100644 --- a/chapter8/automake.sh +++ b/chapter8/automake.sh @@ -1,10 +1,9 @@ #!/bin/bash -set -e -sed -i "s/''/etags/" t/tags-lisp-space.sh +sed -i "s/''/etags/" t/tags-lisp-space.sh && -./configure --prefix=/usr --docdir=/usr/share/doc/automake-"${VERSION}" +./configure --prefix=/usr --docdir=/usr/share/doc/automake-"${VERSION}" && -make +make && make -j1 install diff --git a/chapter8/bash.sh b/chapter8/bash.sh index 6bbd448..81d91c1 100644 --- a/chapter8/bash.sh +++ b/chapter8/bash.sh @@ -1,19 +1,19 @@ #!/bin/bash -set -e +# shellcheck disable=SC2016 -patch -Np1 -i ../bash-"${VERSION}"-fixes-1.patch -# shellcheck disable=SC2016 -sed -i '/^bashline.o:.*shmbchar.h/a bashline.o: ${DEFDIR}/builtext.h' Makefile.in +patch -Np1 -i ../bash-"${VERSION}"-fixes-1.patch && + +sed -i '/^bashline.o:.*shmbchar.h/a bashline.o: ${DEFDIR}/builtext.h' Makefile.in && ./configure --prefix=/usr \ --docdir=/usr/share/doc/bash-"${VERSION}" \ --without-bash-malloc \ - --with-installed-readline + --with-installed-readline && -make +make && -make -j1 install +make -j1 install && mv -vf /usr/bin/bash /bin #exec /bin/bash --login +h diff --git a/chapter8/bc.sh b/chapter8/bc.sh index b6416e4..8d2b2f7 100644 --- a/chapter8/bc.sh +++ b/chapter8/bc.sh @@ -1,7 +1,7 @@ #!/bin/bash -set -e -CC=gcc ./configure.sh --prefix=/usr -G -O3 +CC=gcc ./configure.sh --prefix=/usr -G -O3 && + +make && -make make -j1 install diff --git a/chapter8/binutils.sh b/chapter8/binutils.sh index 4236b80..e3fe6c5 100644 --- a/chapter8/binutils.sh +++ b/chapter8/binutils.sh @@ -1,9 +1,8 @@ #!/bin/bash -set -e expect -c "spawn ls" -sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in +sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in && mkdir -v build cd build || exit 1 @@ -15,10 +14,10 @@ cd build || exit 1 --enable-shared \ --disable-werror \ --enable-64-bit-bfd \ - --with-system-zlib + --with-system-zlib && -make tooldir=/usr +make tooldir=/usr && -make tooldir=/usr -j1 install +make tooldir=/usr -j1 install && rm -fv /usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.a diff --git a/chapter8/bison.sh b/chapter8/bison.sh index b1fbc99..ab72461 100644 --- a/chapter8/bison.sh +++ b/chapter8/bison.sh @@ -1,8 +1,7 @@ #!/bin/bash -set -e -./configure --prefix=/usr --docdir=/usr/share/doc/bison-"${VERSION}" +./configure --prefix=/usr --docdir=/usr/share/doc/bison-"${VERSION}" && -make +make && make -j1 install diff --git a/chapter8/bzip2.sh b/chapter8/bzip2.sh index 667bd5f..1b35096 100644 --- a/chapter8/bzip2.sh +++ b/chapter8/bzip2.sh @@ -1,23 +1,22 @@ #!/bin/bash -set -e +# shellcheck disable=SC2016 -patch -Np1 -i ../bzip2-"${VERSION}"-install_docs-1.patch -# shellcheck disable=SC2016 -sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile -sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile +patch -Np1 -i ../bzip2-"${VERSION}"-install_docs-1.patch && -make -f Makefile-libbz2_so -make clean -make +sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile && +sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile && -make PREFIX=/usr -j1 install +make -f Makefile-libbz2_so && +make clean && +make && -cp -v bzip2-shared /bin/bzip2 -cp -av libbz2.so* /lib -ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so -rm -v /usr/bin/{bunzip2,bzcat,bzip2} -ln -sv bzip2 /bin/bunzip2 -ln -sv bzip2 /bin/bzcat +make PREFIX=/usr -j1 install && +cp -v bzip2-shared /bin/bzip2 && +cp -av libbz2.so* /lib && +ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so && +rm -v /usr/bin/{bunzip2,bzcat,bzip2} && +ln -sv bzip2 /bin/bunzip2 && +ln -sv bzip2 /bin/bzcat && rm -fv /usr/lib/libbz2.a diff --git a/chapter8/check.sh b/chapter8/check.sh index 4b856a3..af09e33 100644 --- a/chapter8/check.sh +++ b/chapter8/check.sh @@ -1,8 +1,7 @@ #!/bin/bash -set -e -./configure --prefix=/usr --disable-static +./configure --prefix=/usr --disable-static && -make +make && make docdir=/usr/share/doc/check-"${VERSION}" -j1 install diff --git a/chapter8/coreutils.sh b/chapter8/coreutils.sh index 1bbc0f3..7909f26 100644 --- a/chapter8/coreutils.sh +++ b/chapter8/coreutils.sh @@ -1,24 +1,22 @@ #!/bin/bash -set -e -patch -Np1 -i ../coreutils-"${VERSION}"-i18n-1.patch +patch -Np1 -i ../coreutils-"${VERSION}"-i18n-1.patch && -sed -i '/test.lock/s/^/#/' gnulib-tests/gnulib.mk +sed -i '/test.lock/s/^/#/' gnulib-tests/gnulib.mk && -autoreconf -fiv +autoreconf -fiv && FORCE_UNSAFE_CONFIGURE=1 ./configure \ --prefix=/usr \ - --enable-no-install-program=kill,uptime + --enable-no-install-program=kill,uptime && -make +make && -make -j1 install - -mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin -mv -v /usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} /bin -mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin -mv -v /usr/bin/chroot /usr/sbin -mv -v /usr/share/man/man1/chroot.1 /usr/share/man/man8/chroot.8 -sed -i 's/"1"/"8"/' /usr/share/man/man8/chroot.8 +make -j1 install && +mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin && +mv -v /usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} /bin && +mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin && +mv -v /usr/bin/chroot /usr/sbin && +mv -v /usr/share/man/man1/chroot.1 /usr/share/man/man8/chroot.8 && +sed -i 's/"1"/"8"/' /usr/share/man/man8/chroot.8 && mv -v /usr/bin/{head,nice,sleep,touch} /bin diff --git a/chapter8/dejagnu.sh b/chapter8/dejagnu.sh index 5d66681..273ab0f 100644 --- a/chapter8/dejagnu.sh +++ b/chapter8/dejagnu.sh @@ -1,10 +1,9 @@ #!/bin/bash -set -e -./configure --prefix=/usr -makeinfo --html --no-split -o doc/dejagnu.html doc/dejagnu.texi -makeinfo --plaintext -o doc/dejagnu.txt doc/dejagnu.texi +./configure --prefix=/usr && +makeinfo --html --no-split -o doc/dejagnu.html doc/dejagnu.texi && +makeinfo --plaintext -o doc/dejagnu.txt doc/dejagnu.texi && -make -j1 install -install -v -dm755 /usr/share/doc/dejagnu-"${VERSION}" +make -j1 install && +install -v -dm755 /usr/share/doc/dejagnu-"${VERSION}" && install -v -m644 doc/dejagnu.{html,txt} /usr/share/doc/dejagnu-"${VERSION}" diff --git a/chapter8/diffutils.sh b/chapter8/diffutils.sh index 80e5dae..1f6d045 100644 --- a/chapter8/diffutils.sh +++ b/chapter8/diffutils.sh @@ -1,8 +1,7 @@ #!/bin/bash -set -e -./configure --prefix=/usr +./configure --prefix=/usr && -make +make && make -j1 install diff --git a/chapter8/e2fsprogs.sh b/chapter8/e2fsprogs.sh index 2116d00..48a9ead 100644 --- a/chapter8/e2fsprogs.sh +++ b/chapter8/e2fsprogs.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e mkdir -v build cd build || exit 1 @@ -11,16 +10,16 @@ cd build || exit 1 --disable-libblkid \ --disable-libuuid \ --disable-uuidd \ - --disable-fsck + --disable-fsck && -make +make && -make -j1 install +make -j1 install && -rm -fv /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a -gunzip -v /usr/share/info/libext2fs.info.gz -install-info --dir-file=/usr/share/info/dir /usr/share/info/libext2fs.info +rm -fv /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a && +gunzip -v /usr/share/info/libext2fs.info.gz && +install-info --dir-file=/usr/share/info/dir /usr/share/info/libext2fs.info && -makeinfo -o doc/com_err.info ../lib/et/com_err.texinfo -install -v -m644 doc/com_err.info /usr/share/info +makeinfo -o doc/com_err.info ../lib/et/com_err.texinfo && +install -v -m644 doc/com_err.info /usr/share/info && install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info diff --git a/chapter8/eudev.sh b/chapter8/eudev.sh index 29d0ae2..bd6146f 100644 --- a/chapter8/eudev.sh +++ b/chapter8/eudev.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --bindir=/sbin \ @@ -10,16 +9,16 @@ set -e --with-rootprefix= \ --with-rootlibdir=/lib \ --enable-manpages \ - --disable-static + --disable-static && -make +make && -mkdir -pv /lib/udev/rules.d -mkdir -pv /etc/udev/rules.d +mkdir -pv /lib/udev/rules.d && +mkdir -pv /etc/udev/rules.d && -make -j1 install +make -j1 install && -tar -xvf ../udev-lfs-20171102.tar.xz -make -f udev-lfs-20171102/Makefile.lfs install +tar -xvf ../udev-lfs-20171102.tar.xz && +make -f udev-lfs-20171102/Makefile.lfs install && udevadm hwdb --update diff --git a/chapter8/expat.sh b/chapter8/expat.sh index d01da34..e37a780 100644 --- a/chapter8/expat.sh +++ b/chapter8/expat.sh @@ -1,12 +1,11 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --disable-static \ - --docdir=/usr/share/doc/expat-"${VERSION}" + --docdir=/usr/share/doc/expat-"${VERSION}" && -make +make && -make -j1 install +make -j1 install && install -v -m644 doc/*.{html,png,css} /usr/share/doc/expat-"${VERSION}" diff --git a/chapter8/expect.sh b/chapter8/expect.sh index 55d1137..8a2e24b 100644 --- a/chapter8/expect.sh +++ b/chapter8/expect.sh @@ -1,12 +1,11 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --with-tcl=/usr/lib \ --enable-shared \ --mandir=/usr/share/man \ - --with-tclinclude=/usr/include + --with-tclinclude=/usr/include && -make -make -j1 install +make && +make -j1 install && ln -svf expect"${VERSION}"/libexpect"${VERSION}".so /usr/lib diff --git a/chapter8/file.sh b/chapter8/file.sh index 56e9aab..2c0622c 100644 --- a/chapter8/file.sh +++ b/chapter8/file.sh @@ -1,9 +1,8 @@ #!/bin/bash -set -e -./configure --prefix=/usr -make -make -j1 install +./configure --prefix=/usr && +make && +make -j1 install && -mv -v /usr/lib/libmagic.so.* /lib +mv -v /usr/lib/libmagic.so.* /lib && ln -sfv ../../lib/"$(readlink /usr/lib/libmagic.so)" /usr/lib/libmagic.so diff --git a/chapter8/findutils.sh b/chapter8/findutils.sh index 8f6f583..101f464 100644 --- a/chapter8/findutils.sh +++ b/chapter8/findutils.sh @@ -1,12 +1,13 @@ #!/bin/bash -set -e +# shellcheck disable=SC2016 -./configure --prefix=/usr --localstatedir=/var/lib/locate -make +./configure --prefix=/usr --localstatedir=/var/lib/locate && -make -j1 install +make && + +make -j1 install && + +mv -v /usr/bin/find /bin && -mv -v /usr/bin/find /bin -# shellcheck disable=SC2016 sed -i 's|find:=${BINDIR}|find:=/bin|' /usr/bin/updatedb diff --git a/chapter8/flex.sh b/chapter8/flex.sh index 94ca651..35f99de 100644 --- a/chapter8/flex.sh +++ b/chapter8/flex.sh @@ -1,11 +1,10 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --docdir=/usr/share/doc/flex-"${VERSION}" \ - --disable-static + --disable-static && -make +make && -make -j1 install +make -j1 install && ln -sv flex /usr/bin/lex diff --git a/chapter8/gawk.sh b/chapter8/gawk.sh index f30bea4..3a25fc2 100644 --- a/chapter8/gawk.sh +++ b/chapter8/gawk.sh @@ -1,13 +1,12 @@ #!/bin/bash -set -e sed -i 's/extras//' Makefile.in -./configure --prefix=/usr +./configure --prefix=/usr && -make +make && -make -j1 install +make -j1 install && -mkdir -v /usr/share/doc/gawk-"${VERSION}" +mkdir -v /usr/share/doc/gawk-"${VERSION}" && cp -v doc/{awkforai.txt,*.{eps,pdf,jpg}} /usr/share/doc/gawk-"${VERSION}" diff --git a/chapter8/gcc.sh b/chapter8/gcc.sh index 2eb8329..85030d9 100644 --- a/chapter8/gcc.sh +++ b/chapter8/gcc.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e case $(uname -m) in x86_64) @@ -16,32 +15,32 @@ cd build || exit 1 --enable-languages=c,c++ \ --disable-multilib \ --disable-bootstrap \ - --with-system-zlib + --with-system-zlib && -make +make && -make -j1 install -rm -rf /usr/lib/gcc/"$(gcc -dumpmachine)"/"${VERSION}"/include-fixed/bits/ +make -j1 install && +rm -rf /usr/lib/gcc/"$(gcc -dumpmachine)"/"${VERSION}"/include-fixed/bits/ && chown -v -R root:root \ - /usr/lib/gcc/*linux-gnu/"${VERSION}"/include{,-fixed} + /usr/lib/gcc/*linux-gnu/"${VERSION}"/include{,-fixed} && -ln -sv ../usr/bin/cpp /lib +ln -sv ../usr/bin/cpp /lib && ln -sfv ../../libexec/gcc/"$(gcc -dumpmachine)"/"${VERSION}"/liblto_plugin.so \ - /usr/lib/bfd-plugins/ + /usr/lib/bfd-plugins/ && echo 'int main(){}' > dummy.c -cc dummy.c -v -Wl,--verbose &> dummy.log -readelf -l a.out | grep ': /lib' +cc dummy.c -v -Wl,--verbose &> dummy.log && +readelf -l a.out | grep ': /lib' && -grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log -grep -B4 '^ /usr/include' dummy.log -grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g' -grep "/lib.*/libc.so.6 " dummy.log -grep found dummy.log +grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log && +grep -B4 '^ /usr/include' dummy.log && +grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g' && +grep "/lib.*/libc.so.6 " dummy.log && +grep found dummy.log && -rm -v dummy.c a.out dummy.log +rm -v dummy.c a.out dummy.log && -mkdir -pv /usr/share/gdb/auto-load/usr/lib +mkdir -pv /usr/share/gdb/auto-load/usr/lib && mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib diff --git a/chapter8/gdbm.sh b/chapter8/gdbm.sh index 4053f4a..b81ce81 100644 --- a/chapter8/gdbm.sh +++ b/chapter8/gdbm.sh @@ -1,10 +1,9 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --disable-static \ - --enable-libgdbm-compat + --enable-libgdbm-compat && -make +make && make -j1 install diff --git a/chapter8/gettext.sh b/chapter8/gettext.sh index ff604b8..df758da 100644 --- a/chapter8/gettext.sh +++ b/chapter8/gettext.sh @@ -1,11 +1,10 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --disable-static \ - --docdir=/usr/share/doc/gettext-"${VERSION}" + --docdir=/usr/share/doc/gettext-"${VERSION}" && -make +make && -make -j1 install +make -j1 install && chmod -v 0755 /usr/lib/preloadable_libintl.so diff --git a/chapter8/glibc.sh b/chapter8/glibc.sh index 520d42b..e344b47 100644 --- a/chapter8/glibc.sh +++ b/chapter8/glibc.sh @@ -1,10 +1,11 @@ #!/bin/bash -set -e +# shellcheck disable=SC2016 + -patch -Np1 -i ../glibc-"${VERSION}"-fhs-1.patch +patch -Np1 -i ../glibc-"${VERSION}"-fhs-1.patch && sed -e '402a\ *result = local->data.services[database_index];' \ - -i nss/nss_database.c + -i nss/nss_database.c && mkdir -v build cd build || exit 1 @@ -14,21 +15,20 @@ cd build || exit 1 --enable-kernel=5.10.0 \ --enable-stack-protector=strong \ --with-headers=/usr/include \ - libc_cv_slibdir=/lib + libc_cv_slibdir=/lib && -make PARALLELMFLAGS="${MAKEFLAGS}" +make PARALLELMFLAGS="${MAKEFLAGS}" && -touch /etc/ld.so.conf +touch /etc/ld.so.conf && -# shellcheck disable=SC2016 -sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile +sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile && -make -j1 install +make -j1 install && -cp -v ../nscd/nscd.conf /etc/nscd.conf -mkdir -pv /var/cache/nscd +cp -v ../nscd/nscd.conf /etc/nscd.conf && +mkdir -pv /var/cache/nscd && -make localedata/install-locales +make localedata/install-locales && cat > /etc/nsswitch.conf << "EOF" # Begin /etc/nsswitch.conf @@ -48,22 +48,22 @@ rpc: files # End /etc/nsswitch.conf EOF -tar -xf ../../tzdata2021a.tar.gz +tar -xf ../../tzdata2021a.tar.gz && ZONEINFO=/usr/share/zoneinfo -mkdir -pv "${ZONEINFO}"/{posix,right} +mkdir -pv "${ZONEINFO}"/{posix,right} && for tz in etcetera southamerica northamerica europe africa antarctica \ asia australasia backward; do - zic -L /dev/null -d "${ZONEINFO}" "${tz}" - zic -L /dev/null -d "${ZONEINFO}"/posix "${tz}" + zic -L /dev/null -d "${ZONEINFO}" "${tz}" && + zic -L /dev/null -d "${ZONEINFO}"/posix "${tz}" && zic -L leapseconds -d "${ZONEINFO}"/right "${tz}" done -cp -v zone.tab zone1970.tab iso3166.tab "${ZONEINFO}" -zic -d "${ZONEINFO}" -p America/New_York +cp -v zone.tab zone1970.tab iso3166.tab "${ZONEINFO}" && +zic -d "${ZONEINFO}" -p America/New_York && -ln -sfv /usr/share/zoneinfo/America/Chicago /etc/localtime +ln -sfv /usr/share/zoneinfo/America/Chicago /etc/localtime && cat > /etc/ld.so.conf << "EOF" # Begin /etc/ld.so.conf diff --git a/chapter8/gmp.sh b/chapter8/gmp.sh index 4c346c1..7ca2523 100644 --- a/chapter8/gmp.sh +++ b/chapter8/gmp.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e # Uncomment for generic libraries # cp -v configfsf.guess config.guess @@ -8,10 +7,10 @@ set -e ./configure --prefix=/usr \ --enable-cxx \ --disable-static \ - --docdir=/usr/share/doc/gmp-"${VERSION}" + --docdir=/usr/share/doc/gmp-"${VERSION}" && -make -make html +make && +make html && -make -j1 install +make -j1 install && make -j1 install-html diff --git a/chapter8/gperf.sh b/chapter8/gperf.sh index c2b8a9f..1806dd3 100644 --- a/chapter8/gperf.sh +++ b/chapter8/gperf.sh @@ -1,8 +1,7 @@ #!/bin/bash -set -e -./configure --prefix=/usr --docdir=/usr/share/doc/gperf-"${VERSION}" +./configure --prefix=/usr --docdir=/usr/share/doc/gperf-"${VERSION}" && -make +make && make -j1 install diff --git a/chapter8/grep.sh b/chapter8/grep.sh index b0ba921..e567f51 100644 --- a/chapter8/grep.sh +++ b/chapter8/grep.sh @@ -1,8 +1,7 @@ #!/bin/bash -set -e -./configure --prefix=/usr --bindir=/bin +./configure --prefix=/usr --bindir=/bin && -make +make && make -j1 install diff --git a/chapter8/groff.sh b/chapter8/groff.sh index ef920a5..f763a61 100644 --- a/chapter8/groff.sh +++ b/chapter8/groff.sh @@ -1,8 +1,7 @@ #!/bin/bash -set -e -PAGE=letter ./configure --prefix=/usr +PAGE=letter ./configure --prefix=/usr && -make +make && make -j1 install diff --git a/chapter8/grub.sh b/chapter8/grub.sh index 9c2917b..693adcd 100644 --- a/chapter8/grub.sh +++ b/chapter8/grub.sh @@ -1,16 +1,15 @@ #!/bin/bash -set -e sed "s/gold-version/& -R .note.gnu.property/" \ - -i Makefile.in grub-core/Makefile.in + -i Makefile.in grub-core/Makefile.in && ./configure --prefix=/usr \ --sbindir=/sbin \ --sysconfdir=/etc \ --disable-efiemu \ - --disable-werror + --disable-werror && -make +make && -make -j1 install +make -j1 install && mv -v /etc/bash_completion.d/grub /usr/share/bash-completion/completions diff --git a/chapter8/gzip.sh b/chapter8/gzip.sh index 02c7101..f762cf3 100644 --- a/chapter8/gzip.sh +++ b/chapter8/gzip.sh @@ -1,10 +1,9 @@ #!/bin/bash -set -e -./configure --prefix=/usr +./configure --prefix=/usr && -make +make && -make -j1 install +make -j1 install && mv -v /usr/bin/gzip /bin diff --git a/chapter8/iana-etc.sh b/chapter8/iana-etc.sh index be58311..8576a80 100644 --- a/chapter8/iana-etc.sh +++ b/chapter8/iana-etc.sh @@ -1,4 +1,3 @@ #!/bin/bash -set -e cp -v services protocols /etc diff --git a/chapter8/inetutils.sh b/chapter8/inetutils.sh index f96f5f4..ca54213 100644 --- a/chapter8/inetutils.sh +++ b/chapter8/inetutils.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --localstatedir=/var \ @@ -9,11 +8,11 @@ set -e --disable-rexec \ --disable-rlogin \ --disable-rsh \ - --disable-servers + --disable-servers && -make +make && -make -j1 install +make -j1 install && -mv -v /usr/bin/{hostname,ping,ping6,traceroute} /bin +mv -v /usr/bin/{hostname,ping,ping6,traceroute} /bin && mv -v /usr/bin/ifconfig /sbin diff --git a/chapter8/intltool.sh b/chapter8/intltool.sh index 7023410..527e46a 100644 --- a/chapter8/intltool.sh +++ b/chapter8/intltool.sh @@ -1,11 +1,10 @@ #!/bin/bash -set -e -sed -i 's:\\\${:\\\$\\{:' intltool-update.in +sed -i 's:\\\${:\\\$\\{:' intltool-update.in && -./configure --prefix=/usr +./configure --prefix=/usr && -make +make && -make -j1 install +make -j1 install && install -v -Dm644 doc/I18N-HOWTO /usr/share/doc/intltool-"${VERSION}"/I18N-HOWTO diff --git a/chapter8/iproute2.sh b/chapter8/iproute2.sh index 4ac6a65..8034496 100644 --- a/chapter8/iproute2.sh +++ b/chapter8/iproute2.sh @@ -1,11 +1,10 @@ #!/bin/bash -set -e -sed -i /ARPD/d Makefile -rm -fv man/man8/arpd.8 +sed -i /ARPD/d Makefile && +rm -fv man/man8/arpd.8 && -sed -i 's/.m_ipt.o//' tc/Makefile +sed -i 's/.m_ipt.o//' tc/Makefile && -make +make && make DOCDIR=/usr/share/doc/iproute2-"${VERSION}" -j1 install diff --git a/chapter8/isl.sh b/chapter8/isl.sh index 1187a4d..e1a68f7 100644 --- a/chapter8/isl.sh +++ b/chapter8/isl.sh @@ -1,12 +1,11 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --disable-static \ - --docdir=/usr/share/doc/isl-"${VERSION}" + --docdir=/usr/share/doc/isl-"${VERSION}" && -make -make html +make && +make html && -make -j1 install +make -j1 install && make -j1 install-html diff --git a/chapter8/kbd.sh b/chapter8/kbd.sh index 3a79d3c..00a7397 100644 --- a/chapter8/kbd.sh +++ b/chapter8/kbd.sh @@ -1,16 +1,15 @@ #!/bin/bash -set -e -patch -Np1 -i ../kbd-"${VERSION}"-backspace-1.patch +patch -Np1 -i ../kbd-"${VERSION}"-backspace-1.patch && -sed -i '/RESIZECONS_PROGS=/s/yes/no/' configure -sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in +sed -i '/RESIZECONS_PROGS=/s/yes/no/' configure && +sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in && -./configure --prefix=/usr --disable-vlock +./configure --prefix=/usr --disable-vlock && -make +make && -make -j1 install +make -j1 install && -mkdir -v /usr/share/doc/kbd-"${VERSION}" +mkdir -v /usr/share/doc/kbd-"${VERSION}" && cp -R -v docs/doc/* /usr/share/doc/kbd-"${VERSION}" diff --git a/chapter8/kmod.sh b/chapter8/kmod.sh index 010f7cb..3435179 100644 --- a/chapter8/kmod.sh +++ b/chapter8/kmod.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --bindir=/bin \ @@ -7,11 +6,11 @@ set -e --with-rootlibdir=/lib \ --with-xz \ --with-zstd \ - --with-zlib + --with-zlib && -make +make && -make -j1 install +make -j1 install && for target in depmod insmod lsmod modinfo modprobe rmmod; do ln -sfv ../bin/kmod /sbin/"${target}" diff --git a/chapter8/less.sh b/chapter8/less.sh index 5cf9900..01a6cb7 100644 --- a/chapter8/less.sh +++ b/chapter8/less.sh @@ -1,8 +1,7 @@ #!/bin/bash -set -e -./configure --prefix=/usr --sysconfdir=/etc +./configure --prefix=/usr --sysconfdir=/etc && -make +make && make -j1 install diff --git a/chapter8/libcap.sh b/chapter8/libcap.sh index c19667e..a67b607 100644 --- a/chapter8/libcap.sh +++ b/chapter8/libcap.sh @@ -1,13 +1,12 @@ #!/bin/bash -set -e -sed -i '/install -m.*STA/d' libcap/Makefile +sed -i '/install -m.*STA/d' libcap/Makefile && -make prefix=/usr lib=lib +make prefix=/usr lib=lib && -make prefix=/usr lib=lib -j1 install +make prefix=/usr lib=lib -j1 install && for libname in cap psx; do - mv -v /usr/lib/lib"${libname}".so.* /lib - ln -sfv ../../lib/lib"${libname}".so.2 /usr/lib/lib"${libname}".so + mv -v /usr/lib/lib"${libname}".so.* /lib && + ln -sfv ../../lib/lib"${libname}".so.2 /usr/lib/lib"${libname}".so && chmod -v 755 /lib/lib"${libname}".so."${VERSION}" done diff --git a/chapter8/libelf.sh b/chapter8/libelf.sh index ce85e4a..cc8798f 100644 --- a/chapter8/libelf.sh +++ b/chapter8/libelf.sh @@ -1,13 +1,12 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --disable-debuginfod \ --enable-libdebuginfod=dummy \ - --libdir=/lib + --libdir=/lib && -make +make && -make -C libelf -j1 install -install -vm644 config/libelf.pc /usr/lib/pkgconfig +make -C libelf -j1 install && +install -vm644 config/libelf.pc /usr/lib/pkgconfig && rm /lib/libelf.a diff --git a/chapter8/libffi.sh b/chapter8/libffi.sh index f45bb19..1a5b45a 100644 --- a/chapter8/libffi.sh +++ b/chapter8/libffi.sh @@ -1,8 +1,7 @@ #!/bin/bash -set -e -./configure --prefix=/usr --disable-static --with-gcc-arch=native +./configure --prefix=/usr --disable-static --with-gcc-arch=native && -make +make && make -j1 install diff --git a/chapter8/libpipeline.sh b/chapter8/libpipeline.sh index 80e5dae..1f6d045 100644 --- a/chapter8/libpipeline.sh +++ b/chapter8/libpipeline.sh @@ -1,8 +1,7 @@ #!/bin/bash -set -e -./configure --prefix=/usr +./configure --prefix=/usr && -make +make && make -j1 install diff --git a/chapter8/libtool.sh b/chapter8/libtool.sh index 0457b70..a4c9dd5 100644 --- a/chapter8/libtool.sh +++ b/chapter8/libtool.sh @@ -1,10 +1,9 @@ #!/bin/bash -set -e -./configure --prefix=/usr +./configure --prefix=/usr && -make +make && -make -j1 install +make -j1 install && rm -fv /usr/lib/libltdl.a diff --git a/chapter8/m4.sh b/chapter8/m4.sh index 1c24928..5174f00 100644 --- a/chapter8/m4.sh +++ b/chapter8/m4.sh @@ -1,9 +1,8 @@ #!/bin/bash -set -e -sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c -echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h +sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c && +echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h && -./configure --prefix=/usr -make +./configure --prefix=/usr && +make && make -j1 install diff --git a/chapter8/make.sh b/chapter8/make.sh index 80e5dae..1f6d045 100644 --- a/chapter8/make.sh +++ b/chapter8/make.sh @@ -1,8 +1,7 @@ #!/bin/bash -set -e -./configure --prefix=/usr +./configure --prefix=/usr && -make +make && make -j1 install diff --git a/chapter8/man-db.sh b/chapter8/man-db.sh index 981435c..cd60f12 100644 --- a/chapter8/man-db.sh +++ b/chapter8/man-db.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --docdir=/usr/share/doc/man-db-"${VERSION}" \ @@ -10,8 +9,8 @@ set -e --with-vgrind=/usr/bin/vgrind \ --with-grap=/usr/bin/grap \ --with-systemdtmpfilesdir= \ - --with-systemdsystemunitdir= + --with-systemdsystemunitdir= && -make +make && make -j1 install diff --git a/chapter8/man-pages.sh b/chapter8/man-pages.sh index c019094..db9dad4 100644 --- a/chapter8/man-pages.sh +++ b/chapter8/man-pages.sh @@ -1,4 +1,3 @@ #!/bin/bash -set -e make -j1 install diff --git a/chapter8/meson.sh b/chapter8/meson.sh index 63d16c4..0aa9797 100644 --- a/chapter8/meson.sh +++ b/chapter8/meson.sh @@ -1,9 +1,8 @@ #!/bin/bash -set -e -python3 setup.py build +python3 setup.py build && -python3 setup.py install --root=dest -cp -rv dest/* / -install -vDm644 data/shell-completions/bash/meson /usr/share/bash-completion/completions/meson +python3 setup.py install --root=dest && +cp -rv dest/* / && +install -vDm644 data/shell-completions/bash/meson /usr/share/bash-completion/completions/meson && install -vDm644 data/shell-completions/zsh/_meson /usr/share/zsh/site-functions/_meson diff --git a/chapter8/mpc.sh b/chapter8/mpc.sh index 87d194d..793fab5 100644 --- a/chapter8/mpc.sh +++ b/chapter8/mpc.sh @@ -1,12 +1,11 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --disable-static \ - --docdir=/usr/share/doc/mpc-"${VERSION}" + --docdir=/usr/share/doc/mpc-"${VERSION}" && -make -make html +make && +make html && -make -j1 install +make -j1 install && make -j1 install-html diff --git a/chapter8/mpfr.sh b/chapter8/mpfr.sh index 3d1d6b4..99fd5fe 100644 --- a/chapter8/mpfr.sh +++ b/chapter8/mpfr.sh @@ -1,13 +1,12 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --disable-static \ --enable-thread-safe \ - --docdir=/usr/share/doc/mpfr-"${VERSION}" + --docdir=/usr/share/doc/mpfr-"${VERSION}" && -make -make html +make && +make html && -make -j1 install +make -j1 install && make -j1 install-html diff --git a/chapter8/ncurses.sh b/chapter8/ncurses.sh index 8e26211..4bc80d1 100644 --- a/chapter8/ncurses.sh +++ b/chapter8/ncurses.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --mandir=/usr/share/man \ @@ -7,24 +6,24 @@ set -e --without-debug \ --without-normal \ --enable-pc-files \ - --enable-widec + --enable-widec && -make -make -j1 install +make && +make -j1 install && -mv -v /usr/lib/libncursesw.so.6* /lib -ln -sfv ../../lib/"$(readlink /usr/lib/libncursesw.so)" /usr/lib/libncursesw.so +mv -v /usr/lib/libncursesw.so.6* /lib && +ln -sfv ../../lib/"$(readlink /usr/lib/libncursesw.so)" /usr/lib/libncursesw.so && for lib in ncurses form panel menu ; do - rm -vf /usr/lib/lib"${lib}".so - echo "INPUT(-l${lib}w)" > /usr/lib/lib"${lib}".so + rm -vf /usr/lib/lib"${lib}".so && + echo "INPUT(-l${lib}w)" > /usr/lib/lib"${lib}".so && ln -sfv "${lib}"w.pc /usr/lib/pkgconfig/"${lib}".pc done -rm -vf /usr/lib/libcursesw.so -echo "INPUT(-lncursesw)" > /usr/lib/libcursesw.so -ln -sfv libncurses.so /usr/lib/libcurses.so +rm -vf /usr/lib/libcursesw.so && +echo "INPUT(-lncursesw)" > /usr/lib/libcursesw.so && +ln -sfv libncurses.so /usr/lib/libcurses.so && -rm -fv /usr/lib/libncurses++w.a +rm -fv /usr/lib/libncurses++w.a && -mkdir -v /usr/share/doc/ncurses-"${VERSION}" +mkdir -v /usr/share/doc/ncurses-"${VERSION}" && cp -v -R doc/* /usr/share/doc/ncurses-"${VERSION}" diff --git a/chapter8/ninja.sh b/chapter8/ninja.sh index 173a6ba..e778780 100644 --- a/chapter8/ninja.sh +++ b/chapter8/ninja.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e export NINJAJOBS=4 @@ -9,10 +8,10 @@ sed -i '/int Guess/a \ char* jobs = getenv( "NINJAJOBS" );\ if ( jobs != NULL ) j = atoi( jobs );\ if ( j > 0 ) return j;\ -' src/ninja.cc +' src/ninja.cc && -python3 configure.py --bootstrap +python3 configure.py --bootstrap && -install -vm755 ninja /usr/bin/ -install -vDm644 misc/bash-completion /usr/share/bash-completion/completions/ninja +install -vm755 ninja /usr/bin/ && +install -vDm644 misc/bash-completion /usr/share/bash-completion/completions/ninja && install -vDm644 misc/zsh-completion /usr/share/zsh/site-functions/_ninja diff --git a/chapter8/openssl.sh b/chapter8/openssl.sh index a0341f9..b5b85dd 100644 --- a/chapter8/openssl.sh +++ b/chapter8/openssl.sh @@ -1,17 +1,16 @@ #!/bin/bash -set -e ./config --prefix=/usr \ --openssldir=/etc/ssl \ --libdir=lib \ shared \ - zlib-dynamic + zlib-dynamic && -make +make && -sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile -make MANSUFFIX=ssl install +sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile && +make MANSUFFIX=ssl install && -mv -v /usr/share/doc/openssl /usr/share/doc/openssl-"${VERSION}" +mv -v /usr/share/doc/openssl /usr/share/doc/openssl-"${VERSION}" && cp -vfr doc/* /usr/share/doc/openssl-"${VERSION}" diff --git a/chapter8/patch.sh b/chapter8/patch.sh index 80e5dae..1f6d045 100644 --- a/chapter8/patch.sh +++ b/chapter8/patch.sh @@ -1,8 +1,7 @@ #!/bin/bash -set -e -./configure --prefix=/usr +./configure --prefix=/usr && -make +make && make -j1 install diff --git a/chapter8/perl.sh b/chapter8/perl.sh index 040d01f..0fb9e3f 100644 --- a/chapter8/perl.sh +++ b/chapter8/perl.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e MAJMIN="$(cut -d\. -f1,2 <<< "${VERSION}")" @@ -19,9 +18,9 @@ sh Configure -des \ -Dman3dir=/usr/share/man/man3 \ -Dpager="/usr/bin/less -isR" \ -Duseshrplib \ - -Dusethreads + -Dusethreads && -make +make && -make -j1 install +make -j1 install && unset BUILD_ZLIB BUILD_BZIP2 diff --git a/chapter8/pkg-config.sh b/chapter8/pkg-config.sh index 4856af9..b56df73 100644 --- a/chapter8/pkg-config.sh +++ b/chapter8/pkg-config.sh @@ -1,10 +1,9 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --with-internal-glib \ --disable-host-tool \ - --docdir=/usr/share/doc/pkg-config-"${VERSION}" + --docdir=/usr/share/doc/pkg-config-"${VERSION}" && -make +make && make -j1 install diff --git a/chapter8/procps-ng.sh b/chapter8/procps-ng.sh index 49e2cb9..4100fe8 100644 --- a/chapter8/procps-ng.sh +++ b/chapter8/procps-ng.sh @@ -1,16 +1,15 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --exec-prefix= \ --libdir=/usr/lib \ --docdir=/usr/share/doc/procps-ng-"${VERSION}" \ --disable-static \ - --disable-kill + --disable-kill && -make +make && -make -j1 install +make -j1 install && -mv -v /usr/lib/libprocps.so.* /lib +mv -v /usr/lib/libprocps.so.* /lib && ln -sfv ../../lib/"$(readlink /usr/lib/libprocps.so)" /usr/lib/libprocps.so diff --git a/chapter8/psmisc.sh b/chapter8/psmisc.sh index ec79d2a..4ac6405 100644 --- a/chapter8/psmisc.sh +++ b/chapter8/psmisc.sh @@ -1,11 +1,10 @@ #!/bin/bash -set -e -./configure --prefix=/usr +./configure --prefix=/usr && -make +make && -make -j1 install +make -j1 install && -mv -v /usr/bin/fuser /bin +mv -v /usr/bin/fuser /bin && mv -v /usr/bin/killall /bin diff --git a/chapter8/python.sh b/chapter8/python.sh index f1ff5ec..a04a3d4 100644 --- a/chapter8/python.sh +++ b/chapter8/python.sh @@ -1,19 +1,18 @@ #!/bin/bash -set -e -sed 's|cpython/||' -i Include/cpython/pystate.h +sed 's|cpython/||' -i Include/cpython/pystate.h && ./configure --prefix=/usr \ --enable-shared \ --with-system-expat \ --with-system-ffi \ - --with-ensurepip=yes + --with-ensurepip=yes && -make +make && -make -j1 install +make -j1 install && -install -v -dm755 /usr/share/doc/python-"${VERSION}"/html +install -v -dm755 /usr/share/doc/python-"${VERSION}"/html && tar --strip-components=1 \ --no-same-owner \ diff --git a/chapter8/readline.sh b/chapter8/readline.sh index d97b521..cace8ed 100644 --- a/chapter8/readline.sh +++ b/chapter8/readline.sh @@ -1,19 +1,18 @@ #!/bin/bash -set -e -sed -i '/MV.*old/d' Makefile.in -sed -i '/{OLDSUFF}/c:' support/shlib-install +sed -i '/MV.*old/d' Makefile.in && +sed -i '/{OLDSUFF}/c:' support/shlib-install && ./configure --prefix=/usr \ --disable-static \ --with-curses \ - --docdir=/usr/share/doc/readline-"${VERSION}" + --docdir=/usr/share/doc/readline-"${VERSION}" && -make SHLIB_LIBS="-lncursesw" -make SHLIB_LIBS="-lncursesw" -j1 install +make SHLIB_LIBS="-lncursesw" && +make SHLIB_LIBS="-lncursesw" -j1 install && -mv -v /usr/lib/lib{readline,history}.so.* /lib -ln -sfv ../../lib/"$(readlink /usr/lib/libreadline.so)" /usr/lib/libreadline.so -ln -sfv ../../lib/"$(readlink /usr/lib/libhistory.so )" /usr/lib/libhistory.so +mv -v /usr/lib/lib{readline,history}.so.* /lib && +ln -sfv ../../lib/"$(readlink /usr/lib/libreadline.so)" /usr/lib/libreadline.so && +ln -sfv ../../lib/"$(readlink /usr/lib/libhistory.so )" /usr/lib/libhistory.so && install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-"${VERSION}" diff --git a/chapter8/sed.sh b/chapter8/sed.sh index e0226a9..f41cce5 100644 --- a/chapter8/sed.sh +++ b/chapter8/sed.sh @@ -1,12 +1,11 @@ #!/bin/bash -set -e -./configure --prefix=/usr --bindir=/bin +./configure --prefix=/usr --bindir=/bin && -make -make html +make && +make html && -make -j1 install +make -j1 install && -install -d -m755 /usr/share/doc/sed-"${VERSION}" +install -d -m755 /usr/share/doc/sed-"${VERSION}" && install -m644 doc/sed.html /usr/share/doc/sed-"${VERSION}" diff --git a/chapter8/shadow.sh b/chapter8/shadow.sh index 68d1b44..ba1daa7 100644 --- a/chapter8/shadow.sh +++ b/chapter8/shadow.sh @@ -1,29 +1,28 @@ #!/bin/bash -set -e # shellcheck disable=SC2016 ROOTPW='$1$5RPAAd$oejpw8ErihLIB7vmGE4SV1' # shellcheck disable=SC2016 -sed -i 's/groups$(EXEEXT) //' src/Makefile.in -find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \; -find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \; -find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \; +sed -i 's/groups$(EXEEXT) //' src/Makefile.in && +find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \; && +find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \; && +find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \; && sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD SHA512:' \ -e 's:/var/spool/mail:/var/mail:' \ - -i etc/login.defs + -i etc/login.defs && -sed -i 's/1000/999/' etc/useradd +sed -i 's/1000/999/' etc/useradd && -touch /usr/bin/passwd +touch /usr/bin/passwd && ./configure --sysconfdir=/etc \ - --with-group-name-max-length=32 + --with-group-name-max-length=32 && -make -make -j1 install +make && +make -j1 install && -pwconv -grpconv +pwconv && +grpconv && usermod -p "${ROOTPW}" root diff --git a/chapter8/sysklogd.sh b/chapter8/sysklogd.sh index b29802b..f9c093f 100644 --- a/chapter8/sysklogd.sh +++ b/chapter8/sysklogd.sh @@ -1,12 +1,11 @@ #!/bin/bash -set -e -sed -i '/Error loading kernel symbols/{n;n;d}' ksym_mod.c -sed -i 's/union wait/int/' syslogd.c +sed -i '/Error loading kernel symbols/{n;n;d}' ksym_mod.c && +sed -i 's/union wait/int/' syslogd.c && -make +make && -make BINDIR=/sbin -j1 install +make BINDIR=/sbin -j1 install && cat > /etc/syslog.conf << "EOF" # Begin /etc/syslog.conf diff --git a/chapter8/sysvinit.sh b/chapter8/sysvinit.sh index 9c12163..f33bfe0 100644 --- a/chapter8/sysvinit.sh +++ b/chapter8/sysvinit.sh @@ -1,8 +1,7 @@ #!/bin/bash -set -e -patch -Np1 -i ../sysvinit-"${VERSION}"-consolidated-1.patch +patch -Np1 -i ../sysvinit-"${VERSION}"-consolidated-1.patch && -make +make && make -j1 install diff --git a/chapter8/tar.sh b/chapter8/tar.sh index 826011f..076f17d 100644 --- a/chapter8/tar.sh +++ b/chapter8/tar.sh @@ -1,11 +1,10 @@ #!/bin/bash -set -e FORCE_UNSAFE_CONFIGURE=1 \ ./configure --prefix=/usr \ - --bindir=/bin + --bindir=/bin && -make +make && -make -j1 install +make -j1 install && make -C doc install-html docdir=/usr/share/doc/tar-"${VERSION}" diff --git a/chapter8/tcl.sh b/chapter8/tcl.sh index a02aa61..ba630df 100644 --- a/chapter8/tcl.sh +++ b/chapter8/tcl.sh @@ -1,36 +1,35 @@ #!/bin/bash -set -e -tar -xf ../tcl"${VERSION}"-html.tar.gz --strip-components=1 +tar -xf ../tcl"${VERSION}"-html.tar.gz --strip-components=1 && SRCDIR=$(pwd) cd unix || exit 1 ./configure --prefix=/usr \ --mandir=/usr/share/man \ - "$([ "$(uname -m)" = x86_64 ] && echo --enable-64bit)" + "$([ "$(uname -m)" = x86_64 ] && echo --enable-64bit)" && -make +make && sed -e "s|${SRCDIR}/unix|/usr/lib|" \ -e "s|${SRCDIR}|/usr/include|" \ - -i tclConfig.sh + -i tclConfig.sh && sed -e "s|${SRCDIR}/unix/pkgs/tdbc1.1.2|/usr/lib/tdbc1.1.2|" \ -e "s|${SRCDIR}/pkgs/tdbc1.1.2/generic|/usr/include|" \ -e "s|${SRCDIR}/pkgs/tdbc1.1.2/library|/usr/lib/tcl8.6|" \ -e "s|${SRCDIR}/pkgs/tdbc1.1.2|/usr/include|" \ - -i pkgs/tdbc1.1.2/tdbcConfig.sh + -i pkgs/tdbc1.1.2/tdbcConfig.sh && sed -e "s|${SRCDIR}/unix/pkgs/itcl4.2.1|/usr/lib/itcl4.2.1|" \ -e "s|${SRCDIR}/pkgs/itcl4.2.1/generic|/usr/include|" \ -e "s|${SRCDIR}/pkgs/itcl4.2.1|/usr/include|" \ - -i pkgs/itcl4.2.1/itclConfig.sh + -i pkgs/itcl4.2.1/itclConfig.sh && unset SRCDIR -make -j1 install +make -j1 install && -chmod -v u+w /usr/lib/libtcl8.6.so -make -j1 install-private-headers -ln -sfv tclsh8.6 /usr/bin/tclsh +chmod -v u+w /usr/lib/libtcl8.6.so && +make -j1 install-private-headers && +ln -sfv tclsh8.6 /usr/bin/tclsh && mv /usr/share/man/man3/{Thread,Tcl_Thread}.3 diff --git a/chapter8/texinfo.sh b/chapter8/texinfo.sh index dd58780..f5edef4 100644 --- a/chapter8/texinfo.sh +++ b/chapter8/texinfo.sh @@ -1,10 +1,9 @@ #!/bin/bash -set -e -./configure --prefix=/usr +./configure --prefix=/usr && -make +make && -make -j1 install +make -j1 install && make TEXMF=/usr/share/texmf install-tex diff --git a/chapter8/util-linux.sh b/chapter8/util-linux.sh index c27f22e..962118a 100644 --- a/chapter8/util-linux.sh +++ b/chapter8/util-linux.sh @@ -1,5 +1,4 @@ #!/bin/bash -set -e ./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ --docdir=/usr/share/doc/util-linux-"${VERSION}" \ @@ -14,8 +13,8 @@ set -e --without-python \ --without-systemd \ --without-systemdsystemunitdir \ - runstatedir=/run + runstatedir=/run && -make +make && make -j1 install diff --git a/chapter8/vim.sh b/chapter8/vim.sh index a8ae1d5..afec4ed 100644 --- a/chapter8/vim.sh +++ b/chapter8/vim.sh @@ -1,20 +1,19 @@ #!/bin/bash -set -e -echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h +echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h && -./configure --prefix=/usr +./configure --prefix=/usr && -make +make && -make -j1 install +make -j1 install && -ln -sv vim /usr/bin/vi +ln -sv vim /usr/bin/vi && for L in /usr/share/man/{,*/}man1/vim.1; do ln -sv vim.1 "$(dirname $L)"/vi.1 done -ln -sv ../vim/vim82/doc /usr/share/doc/vim-"${VERSION}" +ln -sv ../vim/vim82/doc /usr/share/doc/vim-"${VERSION}" && cat > /etc/vimrc << "EOF" " Begin /etc/vimrc diff --git a/chapter8/xml-parser.sh b/chapter8/xml-parser.sh index d281962..0164c33 100644 --- a/chapter8/xml-parser.sh +++ b/chapter8/xml-parser.sh @@ -1,8 +1,7 @@ #!/bin/bash -set -e -perl Makefile.PL +perl Makefile.PL && -make +make && make -j1 install diff --git a/chapter8/xz.sh b/chapter8/xz.sh index 82d01d1..4fbe922 100644 --- a/chapter8/xz.sh +++ b/chapter8/xz.sh @@ -1,13 +1,12 @@ #!/bin/bash -set -e ./configure --prefix=/usr \ --disable-static \ - --docdir=/usr/share/doc/xz-"${VERSION}" + --docdir=/usr/share/doc/xz-"${VERSION}" && -make -make -j1 install -mv -v /usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat} /bin -mv -v /usr/lib/liblzma.so.* /lib +make && +make -j1 install && +mv -v /usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat} /bin && +mv -v /usr/lib/liblzma.so.* /lib && ln -svf ../../lib/"$(readlink /usr/lib/liblzma.so)" /usr/lib/liblzma.so diff --git a/chapter8/zlib.sh b/chapter8/zlib.sh index d807c7e..4de64f9 100644 --- a/chapter8/zlib.sh +++ b/chapter8/zlib.sh @@ -1,10 +1,9 @@ #!/bin/bash -set -e -./configure --prefix=/usr -make -make -j1 install +./configure --prefix=/usr && +make && +make -j1 install && -mv -v /usr/lib/libz.so.* /lib -ln -sfv ../../lib/"$(readlink /usr/lib/libz.so)" /usr/lib/libz.so +mv -v /usr/lib/libz.so.* /lib && +ln -sfv ../../lib/"$(readlink /usr/lib/libz.so)" /usr/lib/libz.so && rm -fv /usr/lib/libz.a diff --git a/chapter8/zstd.sh b/chapter8/zstd.sh index 5ca874f..8dc163c 100644 --- a/chapter8/zstd.sh +++ b/chapter8/zstd.sh @@ -1,9 +1,8 @@ #!/bin/bash -set -e -make -make prefix=/usr -j1 install +make && +make prefix=/usr -j1 install && -rm -v /usr/lib/libzstd.a -mv -v /usr/lib/libzstd.so.* /lib +rm -v /usr/lib/libzstd.a && +mv -v /usr/lib/libzstd.so.* /lib && ln -sfv ../../lib/"$(readlink /usr/lib/libzstd.so)" /usr/lib/libzstd.so -- cgit v1.2.3-54-g00ecf From 8b5530be21a8e28e3e2c1b9917ca3645fbd13398 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Thu, 15 Apr 2021 08:32:23 -0500 Subject: Create fail and success functions and remove trailing white spaces at ends of lines. --- chapter6/backup.sh | 4 ++-- chapter6/cleanup.sh | 6 +++--- chapter7/backup.sh | 4 ++-- chapter7/cleanup.sh | 2 +- chapter8/backup.sh | 4 ++-- chapter8/cleanup.sh | 2 +- chapter9/bashprofile.sh | 3 +-- chapter9/bootscriptconf.sh | 3 +-- chapter9/inputrc.sh | 3 +-- chapter9/network.sh | 3 +-- chapter9/shells.sh | 3 +-- createdirs.sh | 2 +- download.sh | 8 +++++--- essential.sh | 4 ++-- functions.sh | 21 ++++++++++++++------- lfs.sh | 23 +++++++++++++---------- packageinstall.sh | 9 +++++---- setupdisk.sh | 7 ++++--- 18 files changed, 60 insertions(+), 51 deletions(-) (limited to 'chapter6') diff --git a/chapter6/backup.sh b/chapter6/backup.sh index 837c44c..f9a761c 100644 --- a/chapter6/backup.sh +++ b/chapter6/backup.sh @@ -15,12 +15,12 @@ else spinner "$pid" "${SPINNER}" retval=$? if [ "$retval" -ne 0 ]; then - printf "%b" "${IRED}FAILED!${RST}\n" + fail "FAILED!" exit "${retval}" else # shellcheck disable=SC2024 sudo chown -v "${USER}":"$(id -g)" "${HOME}"/"${file}" >>"${LFS}"/sources/log/chapter6/backup.log - printf "%b" "${IGRN}OK${RST}\n" + success "OK" fi popd > /dev/null || exit 1 diff --git a/chapter6/cleanup.sh b/chapter6/cleanup.sh index 748c0cc..2266d06 100644 --- a/chapter6/cleanup.sh +++ b/chapter6/cleanup.sh @@ -8,7 +8,7 @@ else printf "%b" "${GRN}Cleaning up ${YLW}${LFS}${RST}... " { - find "${LFS}"/usr/lib -name \*.la -delete + find "${LFS}"/usr/lib -name \*.la -delete find "${LFS}"/usr/libexec -name \*.la -delete rm -rfv "${LFS}"/usr/share/doc @@ -22,6 +22,6 @@ else } >"${LFS}"/sources/log/chapter6/cleanup.log 2>&1 - printf "%b" "${IGRN}OK${RST}\n" - touch "${LFS}"/sources/chapter6/cleanup + success "OK" + touch "${LFS}"/sources/chapter6/cleanup fi diff --git a/chapter7/backup.sh b/chapter7/backup.sh index 9418775..b903897 100644 --- a/chapter7/backup.sh +++ b/chapter7/backup.sh @@ -15,12 +15,12 @@ else spinner "$pid" "${SPINNER}" retval=$? if [ "${retval}" -ne 0 ]; then - printf "%b" "${IRED}FAILED!${RST}\n" + fail "FAILED!" exit "${retval}" else # shellcheck disable=SC2024 sudo chown -v "${USER}":"$(id -g)" "${HOME}"/"${file}" >"${LFS}"/sources/log/chapter7/backup.log 2>&1 - printf "%b" "${IGRN}OK${RST}\n" + success "OK" fi popd > /dev/null || exit 1 diff --git a/chapter7/cleanup.sh b/chapter7/cleanup.sh index 53ad4d4..3e4dfa3 100644 --- a/chapter7/cleanup.sh +++ b/chapter7/cleanup.sh @@ -21,6 +21,6 @@ else sudo strip --strip-unneeded "${LFS}"/tools/bin/* || true } >"${LFS}"/sources/log/chapter7/cleanup.log 2>&1 - printf "%b" "${IGRN}OK${RST}\n" + success "OK" sudo touch "${LFS}"/sources/chapter7/cleanup >/dev/null 2>&1 fi diff --git a/chapter8/backup.sh b/chapter8/backup.sh index d7a29ac..4df6f79 100644 --- a/chapter8/backup.sh +++ b/chapter8/backup.sh @@ -15,12 +15,12 @@ else spinner "$pid" "${SPINNER}" retval=$? if [ "${retval}" -ne 0 ]; then - printf "%b" "${IRED}FAILED!${RST}\n" + fail "FAILED!" exit "${retval}" else # shellcheck disable=SC2024 sudo chown -v "${USER}":"$(id -g)" "${HOME}"/"${file}" >"${LFS}"/sources/log/chapter8/backup.log 2>&1 - printf "%b" "${IGRN}OK${RST}\n" + success "OK" fi popd > /dev/null || exit 1 diff --git a/chapter8/cleanup.sh b/chapter8/cleanup.sh index ec4084f..12bbae4 100644 --- a/chapter8/cleanup.sh +++ b/chapter8/cleanup.sh @@ -63,6 +63,6 @@ else } >"${LFS}"/sources/log/chapter8/cleanup.log 2>&1 - printf "%b" "${IGRN}OK${RST}\n" + success "OK" sudo touch "${LFS}"/sources/chapter8/cleanup >/dev/null 2>&1 fi diff --git a/chapter9/bashprofile.sh b/chapter9/bashprofile.sh index 77bc1bb..7ae73c2 100644 --- a/chapter9/bashprofile.sh +++ b/chapter9/bashprofile.sh @@ -1,5 +1,4 @@ -#!/bin/bash -set -e +#!/bin/bash cat > /etc/profile << "EOF" # Begin /etc/profile diff --git a/chapter9/bootscriptconf.sh b/chapter9/bootscriptconf.sh index 2640502..ae9633c 100644 --- a/chapter9/bootscriptconf.sh +++ b/chapter9/bootscriptconf.sh @@ -1,5 +1,4 @@ -#!/bin/bash -set -e +#!/bin/bash cat > /etc/inittab << "EOF" # Begin /etc/inittab diff --git a/chapter9/inputrc.sh b/chapter9/inputrc.sh index 05c7dde..5da8f3b 100644 --- a/chapter9/inputrc.sh +++ b/chapter9/inputrc.sh @@ -1,5 +1,4 @@ -#!/bin/bash -set -e +#!/bin/bash cat > /etc/inputrc << "EOF" # Begin /etc/inputrc diff --git a/chapter9/network.sh b/chapter9/network.sh index 1cd1739..05ab2fd 100644 --- a/chapter9/network.sh +++ b/chapter9/network.sh @@ -1,5 +1,4 @@ -#!/bin/bash -set -e +#!/bin/bash pushd /etc/sysconfig/ >/dev/null || exit 1 cat > ifconfig.eth0 << "EOF" diff --git a/chapter9/shells.sh b/chapter9/shells.sh index ac66dd6..dbeced4 100644 --- a/chapter9/shells.sh +++ b/chapter9/shells.sh @@ -1,5 +1,4 @@ -#!/bin/bash -set -e +#!/bin/bash cat > /etc/shells << "EOF" # Begin /etc/shells diff --git a/createdirs.sh b/createdirs.sh index 2c6f7c5..17bf26a 100644 --- a/createdirs.sh +++ b/createdirs.sh @@ -80,7 +80,7 @@ else { sudo install -v -d -m 1777 var/tmp } >"${LFS}"/sources/createdirs.log 2>&1 - printf "%b" " ${IGRN}OK${RST}\n" + success "OK" touch sources/createdirs fi diff --git a/download.sh b/download.sh index 72c250b..fff69f7 100644 --- a/download.sh +++ b/download.sh @@ -18,9 +18,11 @@ cat packages.csv patches.csv | while read -r line; do if ! echo "${MD5SUM} ${LFS}/sources/${CACHEFILE}" | md5sum -c > /dev/null 2>&1; then rm -f "${LFS}/sources/${CACHEFILE}" - printf "%b" "\n${IPRP} MD5SUM ${YLW}${MD5SUM}${IRED} FAILED! MD5 MISMATCH!${RST}\n" - exit 1 + printf "%b" "\n${IPRP} MD5SUM ${YLW}${MD5SUM} " + fail "FAILED! MD5 MISMATCH!" + exit 1 fi - printf "%b" "\n${IPRP} MD5SUM ${YLW}${MD5SUM}${IGRN} OK${RST}\n" + printf "%b" "\n${IPRP} MD5SUM ${YLW}${MD5SUM} " + success "OK" done diff --git a/essential.sh b/essential.sh index 422e2a4..3384917 100644 --- a/essential.sh +++ b/essential.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -e +set -e pushd "${LFS}" >/dev/null || exit 1 @@ -63,7 +63,7 @@ EOF' } >"${LFS}"/sources/log/essential.log 2>&1 sudo touch sources/essential - sudo printf "%b" "${IGRN}OK${RST}\n" + success "OK" fi diff --git a/functions.sh b/functions.sh index a260f66..b343e65 100644 --- a/functions.sh +++ b/functions.sh @@ -18,20 +18,15 @@ download() export -f download # Shows a spinner while another command is running. Randomly picks one of 12 spinner styles. -# @args command to run (with any parameters) while showing a spinner. +# @args command to run (with any parameters) while showing a spinner. # E.g. ‹spinner sleep 10› -function shutdown() { - tput cnorm # reset cursor -} -trap shutdown EXIT - function cursorBack() { echo -en "\033[$1D" } function spinner() { - # make sure we use non-unicode character type locale + # make sure we use non-unicode character type locale # (that way it works for any locale as long as the font supports the characters) local numspinners=12 @@ -114,3 +109,15 @@ function spinner() { wait "$pid" # capture exit code return $? } + +fail() +{ + printf "%b" "${IRED}${1}${RST}\n" +} +export -f fail + +success() +{ + printf "%b" "${IGRN}${1}${RST}\n" +} +export -f success diff --git a/lfs.sh b/lfs.sh index e5c6c60..8cd843a 100755 --- a/lfs.sh +++ b/lfs.sh @@ -33,23 +33,26 @@ before continuing.${RST}\n\n\n" printf "%b" "${IGRN}CONTINUE ${IWHTB}(C)${RST} / ${IRED}ABORT ${IWHTB}(OTHER)${RST}\n" if read -r -n 1 contabort; then if [[ "$contabort" == "C" ]] || [[ "$contabort" == "c" ]]; then - printf "%b" "\b${IWHT}Build is ${IGRN}CONTINUING${RST}\n\n" - else - printf "%b" "\b${IWHT}Build ${IRED}ABORTED!\n\n" + printf "%b" "\b${IWHT}Build is " + success "CONTINUING\n" + else + printf "%b" "\b${IWHT}Build " + fail "ABORTED!\n" exit 0 fi else - printf "%b" "\b${IWHT}Selection ${IRED}FAILURE!${RST}\n\n" + printf "%b" "\b${IWHT}Selection " + fail "FAILURE!\n" exit 1 fi # Create LFS directory if it doesn't exist printf "%b" "${GRN}Creating LFS directory at ${YLW}${LFS}${GRN}${RST}... " if [[ -d "${LFS}" ]]; then - printf "%b" "${IGRN}EXISTS${RST}\n" + success "EXISTS" else if ! mkdir "${LFS}" >/dev/null 2>&1; then - printf "%b" "${IRED}FAILED!${RST}\n" + fail "FAILED!" exit 1 fi fi @@ -95,10 +98,10 @@ esac printf "%b" "${GRN}Copying required files to ${YLW}${LFS}/sources \ ${GRN}target directory${RST}... " -if ! cp -rf ./*.sh chapter* ./*.csv kernelconfig "${LFS}/sources"; then - printf "%b" "${IRED}FAILED!${RST}\n" +if ! cp -rf ./*.sh chapter* ./*.csv "${LFS}/sources"; then + fail "FAILED!" else - printf "%b" "${IGRN}OK${RST}\n" + success "OK" fi cd "${LFS}/sources" || exit 1 @@ -144,7 +147,7 @@ chmod ugo+x preparechroot.sh chmod ugo+x insidechroot.sh printf "%b" "\n${CYN}PREPARING ${RED}CHROOT${CYN} ENVIRONMENT${RST}...\n" -source preparechroot.sh "${LFS}" +source preparechroot.sh "${LFS}" source createdirs.sh source essential.sh diff --git a/packageinstall.sh b/packageinstall.sh index 706880c..e0516db 100644 --- a/packageinstall.sh +++ b/packageinstall.sh @@ -26,10 +26,11 @@ else spinner "$pid" "${SPINNER}" retval=$? if [[ "$retval" -ne 0 ]]; then - printf "%b" "${GRN}Extraction ${IRED}FAILED!${RST}\n" + printf "%b" "${GRN}Extraction " + fail "FAILED!" return $retval else - printf "%b" "${IGRN}OK${RST}\n" + success "OK" fi pushd "${DIRNAME}" > /dev/null || return 1 @@ -42,11 +43,11 @@ else spinner "$pid" "${SPINNER}" retval=$? if [[ "$retval" -ne 0 ]]; then - printf "%b" "${IRED}FAILED!${RST}\n" + fail "FAILED!" popd > /dev/null || return 1 return $retval else - printf "%b" "${IGRN}OK${RST}\n" + success "OK" touch "${LFS}"/sources/chapter"${CHAPTER}"/"${PACKAGE}" rm -rf "${LFS}"/sources/"${DIRNAME}" fi diff --git a/setupdisk.sh b/setupdisk.sh index b79f27f..659a621 100644 --- a/setupdisk.sh +++ b/setupdisk.sh @@ -22,14 +22,15 @@ q EOF retval=$? if [[ "$retval" -ne 0 ]]; then - printf "%b" " ${IGRN}Creating partition ${IWHT}${LFS_DISK}${LFS_PART} \ -${IRED}FAILED!${RST}\n" + printf "%b" " ${IGRN}Creating partition ${IWHT}${LFS_DISK}${LFS_PART} " + fail "FAILED!" exit 1 fi printf "%b" " ${IGRN}Formatting ${IWHT}${LFS_DISK}${LFS_PART} with \ ${IWHT}${LFS_FS}${IGRN} filesystem and label ${IWHT}${LFS_VER}${RST}\n" if ! sudo /sbin/mkfs -t "${LFS_FS,,}" -L "${LFS_VER}" -F "${LFS_DISK}${LFS_PART}" >/dev/null 2>&1; then printf "%b" " ${IGRN}Creating ${IWHT}${LFS_FS}${IGRN} filesystem at \ -${IWHT}${LFS_DISK}${LFS_PART} ${IRED}FAILED!${RST}\n" +${IWHT}${LFS_DISK}${LFS_PART} " + fail "FAILED!" exit 1 fi -- cgit v1.2.3-54-g00ecf