aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8
diff options
context:
space:
mode:
Diffstat (limited to 'chapter8')
-rw-r--r--chapter8/acl.sh28
-rw-r--r--chapter8/attr.sh28
-rw-r--r--chapter8/autoconf.sh16
-rw-r--r--chapter8/automake.sh20
-rw-r--r--chapter8/backup.sh56
-rw-r--r--chapter8/bash.sh36
-rw-r--r--chapter8/bc.sh16
-rw-r--r--chapter8/binutils.sh48
-rw-r--r--chapter8/bison.sh16
-rw-r--r--chapter8/bzip2.sh42
-rw-r--r--chapter8/check.sh16
-rw-r--r--chapter8/cleanup.sh136
-rw-r--r--chapter8/coreutils.sh46
-rw-r--r--chapter8/dejagnu.sh20
-rw-r--r--chapter8/diffutils.sh16
-rw-r--r--chapter8/e2fsprogs.sh52
-rw-r--r--chapter8/eudev.sh50
-rw-r--r--chapter8/expat.sh24
-rw-r--r--chapter8/expect.sh24
-rw-r--r--chapter8/file.sh18
-rw-r--r--chapter8/findutils.sh24
-rw-r--r--chapter8/flex.sh22
-rw-r--r--chapter8/gawk.sh26
-rw-r--r--chapter8/gcc.sh94
-rw-r--r--chapter8/gdbm.sh20
-rw-r--r--chapter8/gettext.sh22
-rw-r--r--chapter8/glibc.sh158
-rw-r--r--chapter8/gmp.sh34
-rw-r--r--chapter8/gperf.sh16
-rw-r--r--chapter8/grep.sh16
-rw-r--r--chapter8/groff.sh16
-rw-r--r--chapter8/grub.sh32
-rw-r--r--chapter8/gzip.sh20
-rw-r--r--chapter8/iana-etc.sh8
-rw-r--r--chapter8/inetutils.sh38
-rw-r--r--chapter8/intltool.sh22
-rw-r--r--chapter8/iproute2.sh22
-rw-r--r--chapter8/isl.sh24
-rw-r--r--chapter8/kbd.sh32
-rw-r--r--chapter8/kmod.sh40
-rw-r--r--chapter8/less.sh16
-rw-r--r--chapter8/libcap.sh26
-rw-r--r--chapter8/libelf.sh26
-rw-r--r--chapter8/libffi.sh16
-rw-r--r--chapter8/libpipeline.sh16
-rw-r--r--chapter8/libtool.sh20
-rw-r--r--chapter8/m4.sh18
-rw-r--r--chapter8/make.sh16
-rw-r--r--chapter8/man-db.sh34
-rw-r--r--chapter8/man-pages.sh8
-rw-r--r--chapter8/meson.sh18
-rw-r--r--chapter8/mpc.sh24
-rw-r--r--chapter8/mpfr.sh26
-rw-r--r--chapter8/ncurses.sh64
-rw-r--r--chapter8/ninja.sh36
-rw-r--r--chapter8/openssl.sh34
-rw-r--r--chapter8/patch.sh16
-rw-r--r--chapter8/perl.sh54
-rw-r--r--chapter8/pkg-config.sh20
-rw-r--r--chapter8/procps-ng.sh32
-rw-r--r--chapter8/psmisc.sh22
-rw-r--r--chapter8/python.sh44
-rw-r--r--chapter8/readline.sh40
-rw-r--r--chapter8/sed.sh24
-rw-r--r--chapter8/shadow.sh58
-rw-r--r--chapter8/sysklogd.sh46
-rw-r--r--chapter8/sysvinit.sh16
-rw-r--r--chapter8/tar.sh22
-rw-r--r--chapter8/tcl.sh72
-rw-r--r--chapter8/texinfo.sh20
-rw-r--r--chapter8/util-linux.sh42
-rw-r--r--chapter8/vim.sh70
-rw-r--r--chapter8/xml-parser.sh16
-rw-r--r--chapter8/xz.sh26
-rw-r--r--chapter8/zlib.sh20
-rw-r--r--chapter8/zstd.sh18
76 files changed, 1235 insertions, 1235 deletions
diff --git a/chapter8/acl.sh b/chapter8/acl.sh
index 516d861..15fc311 100644
--- a/chapter8/acl.sh
+++ b/chapter8/acl.sh
@@ -1,14 +1,14 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr \
- --bindir=/bin \
- --disable-static \
- --libexecdir=/usr/lib \
- --docdir=/usr/share/doc/acl-"${VERSION}" &&
-
-make &&
-make -j1 install &&
-
-mv -v /usr/lib/libacl.so.* /lib &&
-ln -sfv ../../lib/"$(readlink /usr/lib/libacl.so)" /usr/lib/libacl.so
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --bindir=/bin \
+ --disable-static \
+ --libexecdir=/usr/lib \
+ --docdir=/usr/share/doc/acl-"${VERSION}" &&
+
+make &&
+make -j1 install &&
+
+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 fc68246..32a6db9 100644
--- a/chapter8/attr.sh
+++ b/chapter8/attr.sh
@@ -1,14 +1,14 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr \
- --bindir=/bin \
- --disable-static \
- --sysconfdir=/etc \
- --docdir=/usr/share/doc/attr-"${VERSION}" &&
-
-make &&
-make -j1 install &&
-
-mv -v /usr/lib/libattr.so.* /lib &&
-ln -sfv ../../lib/"$(readlink /usr/lib/libattr.so)" /usr/lib/libattr.so
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --bindir=/bin \
+ --disable-static \
+ --sysconfdir=/etc \
+ --docdir=/usr/share/doc/attr-"${VERSION}" &&
+
+make &&
+make -j1 install &&
+
+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 cb58e2e..eb7f4fe 100644
--- a/chapter8/autoconf.sh
+++ b/chapter8/autoconf.sh
@@ -1,8 +1,8 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr &&
-
-make &&
-
-make -j1 install
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr &&
+
+make &&
+
+make -j1 install
diff --git a/chapter8/automake.sh b/chapter8/automake.sh
index f30ffa6..044dc02 100644
--- a/chapter8/automake.sh
+++ b/chapter8/automake.sh
@@ -1,10 +1,10 @@
-#!/bin/bash
-set -e
-
-sed -i "s/''/etags/" t/tags-lisp-space.sh &&
-
-./configure --prefix=/usr --docdir=/usr/share/doc/automake-"${VERSION}" &&
-
-make &&
-
-make -j1 install
+#!/bin/bash
+set -e
+
+sed -i "s/''/etags/" t/tags-lisp-space.sh &&
+
+./configure --prefix=/usr --docdir=/usr/share/doc/automake-"${VERSION}" &&
+
+make &&
+
+make -j1 install
diff --git a/chapter8/backup.sh b/chapter8/backup.sh
index 4df6f79..49feefe 100644
--- a/chapter8/backup.sh
+++ b/chapter8/backup.sh
@@ -1,28 +1,28 @@
-#!/bin/bash
-set -e
-
-file="${LFS_VER}-ch8-backup.tar.xz"
-directories=(bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var)
-
-if [ -f "${LFS}/sources/chapter8/backup" ]; then
- printf "%b" " ${IGRN}Backup previously completed${RST}\n"
-else
-
- printf "%b" "${GRN}Backing up ${YLW}${LFS}${GRN} to ${YLW}${file}${RST}... "
- pushd "${LFS}" > /dev/null || exit 1
- # shellcheck disable=SC2024
- sudo XZ_OPTS="-T${NUMPROCS} -e" tar cJvpf "${HOME}"/"${file}" "${directories[@]}" >"${LFS}"/sources/log/chapter8/backup.log 2>&1 & pid=$!
- spinner "$pid" "${SPINNER}"
- retval=$?
- if [ "${retval}" -ne 0 ]; then
- fail "FAILED!"
- exit "${retval}"
- else
- # shellcheck disable=SC2024
- sudo chown -v "${USER}":"$(id -g)" "${HOME}"/"${file}" >"${LFS}"/sources/log/chapter8/backup.log 2>&1
- success "OK"
- fi
- popd > /dev/null || exit 1
-
- touch "${LFS}/sources/chapter8/backup"
-fi
+#!/bin/bash
+set -e
+
+file="${LFS_VER}-ch8-backup.tar.xz"
+directories=(bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var)
+
+if [ -f "${LFS}/sources/chapter8/backup" ]; then
+ printf "%b" " ${IGRN}Backup previously completed${RST}\n"
+else
+
+ printf "%b" "${GRN}Backing up ${YLW}${LFS}${GRN} to ${YLW}${file}${RST}... "
+ pushd "${LFS}" > /dev/null || exit 1
+ # shellcheck disable=SC2024
+ sudo XZ_OPTS="-T${NUMPROCS} -e" tar cJvpf "${HOME}"/"${file}" "${directories[@]}" >"${LFS}"/sources/log/chapter8/backup.log 2>&1 & pid=$!
+ spinner "$pid" "${SPINNER}"
+ retval=$?
+ if [ "${retval}" -ne 0 ]; then
+ fail "FAILED!"
+ exit "${retval}"
+ else
+ # shellcheck disable=SC2024
+ sudo chown -v "${USER}":"$(id -g)" "${HOME}"/"${file}" >"${LFS}"/sources/log/chapter8/backup.log 2>&1
+ success "OK"
+ fi
+ popd > /dev/null || exit 1
+
+ touch "${LFS}/sources/chapter8/backup"
+fi
diff --git a/chapter8/bash.sh b/chapter8/bash.sh
index 92402e5..73de0bf 100644
--- a/chapter8/bash.sh
+++ b/chapter8/bash.sh
@@ -1,18 +1,18 @@
-#!/bin/bash
-# shellcheck disable=SC2016
-
-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 &&
-
-make &&
-
-make -j1 install &&
-mv -vf /usr/bin/bash /bin
-
-#exec /bin/bash --login +h
+#!/bin/bash
+# shellcheck disable=SC2016
+
+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 &&
+
+make &&
+
+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 c055edd..bb819c1 100644
--- a/chapter8/bc.sh
+++ b/chapter8/bc.sh
@@ -1,8 +1,8 @@
-#!/bin/bash
-set -e
-
-CC=gcc ./configure.sh --prefix=/usr -G -O3 &&
-
-make &&
-
-make -j1 install
+#!/bin/bash
+set -e
+
+CC=gcc ./configure.sh --prefix=/usr -G -O3 &&
+
+make &&
+
+make -j1 install
diff --git a/chapter8/binutils.sh b/chapter8/binutils.sh
index b5c5732..aca0354 100644
--- a/chapter8/binutils.sh
+++ b/chapter8/binutils.sh
@@ -1,24 +1,24 @@
-#!/bin/bash
-set -e
-
-expect -c "spawn ls"
-
-sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in &&
-
-mkdir -v build
-cd build || exit 1
-
-../configure --prefix=/usr \
- --enable-gold \
- --enable-ld=default \
- --enable-plugins \
- --enable-shared \
- --disable-werror \
- --enable-64-bit-bfd \
- --with-system-zlib &&
-
-make tooldir=/usr &&
-
-make tooldir=/usr -j1 install &&
-
-rm -fv /usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.a
+#!/bin/bash
+set -e
+
+expect -c "spawn ls"
+
+sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in &&
+
+mkdir -v build
+cd build || exit 1
+
+../configure --prefix=/usr \
+ --enable-gold \
+ --enable-ld=default \
+ --enable-plugins \
+ --enable-shared \
+ --disable-werror \
+ --enable-64-bit-bfd \
+ --with-system-zlib &&
+
+make tooldir=/usr &&
+
+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 75283ac..01bee11 100644
--- a/chapter8/bison.sh
+++ b/chapter8/bison.sh
@@ -1,8 +1,8 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr --docdir=/usr/share/doc/bison-"${VERSION}" &&
-
-make &&
-
-make -j1 install
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr --docdir=/usr/share/doc/bison-"${VERSION}" &&
+
+make &&
+
+make -j1 install
diff --git a/chapter8/bzip2.sh b/chapter8/bzip2.sh
index c45bea4..08e95e1 100644
--- a/chapter8/bzip2.sh
+++ b/chapter8/bzip2.sh
@@ -1,21 +1,21 @@
-#!/bin/bash
-# shellcheck disable=SC2016
-
-patch -Np1 -i ../bzip2-"${VERSION}"-install_docs-1.patch &&
-
-sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile &&
-sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile &&
-
-make -f Makefile-libbz2_so &&
-make clean &&
-make &&
-
-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
+#!/bin/bash
+# shellcheck disable=SC2016
+
+patch -Np1 -i ../bzip2-"${VERSION}"-install_docs-1.patch &&
+
+sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile &&
+sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile &&
+
+make -f Makefile-libbz2_so &&
+make clean &&
+make &&
+
+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 6b552e5..29c4d05 100644
--- a/chapter8/check.sh
+++ b/chapter8/check.sh
@@ -1,8 +1,8 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr --disable-static &&
-
-make &&
-
-make docdir=/usr/share/doc/check-"${VERSION}" -j1 install
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr --disable-static &&
+
+make &&
+
+make docdir=/usr/share/doc/check-"${VERSION}" -j1 install
diff --git a/chapter8/cleanup.sh b/chapter8/cleanup.sh
index 12bbae4..eb35b67 100644
--- a/chapter8/cleanup.sh
+++ b/chapter8/cleanup.sh
@@ -1,68 +1,68 @@
-#!/bin/bash
-set -e
-
-if [ -f "${LFS}/sources/chapter8/cleanup" ]; then
- printf "%b" " ${IGRN}Cleanup already performed${RST}\n"
-else
-
- printf "%b" "${GRN}Cleaning up ${YLW}${LFS}${RST}... "
-
- {
-
- sudo rm -rfv "${LFS}"/tmp/*
- sudo rm -rfv "${LFS}"/tools
-
- sudo find "${LFS}"/usr/lib -name \*.la -delete
- sudo find "${LFS}"/usr/libexec -name \*.la -delete
-
- sudo find "${LFS}"/usr -depth -name "$(uname -m)"-lfs-linux-gnu\* | xargs sudo rm -rfv
-
- sudo sed '/tester/d' -i "${LFS}"/etc/group
- sudo sed '/tester/d' -i "${LFS}"/etc/passwd
- sudo rm -rfv "${LFS}"/home/tester
-
- #sudo rm -rfv "${LFS}"/usr/share/doc
- #sudo rm -rfv "${LFS}"/usr/share/info
- #sudo rm -rfv "${LFS}"/usr/share/man
-
- # Place debugging symbols for selected libraries in seprate files
- save_lib="ld-2.33.so libc-2.33.so libpthread-2.33.so libthread_db-1.0.so"
- pushd "${LFS}"/lib || exit 1
-
- for LIB in $save_lib; do
- sudo objcopy --only-keep-debug "${LIB}" "${LIB}".dbg
- sudo strip --strip-unneeded "${LIB}"
- sudo objcopy --add-gnu-debuglink="${LIB}".dbg "${LIB}"
- done
-
- popd || exit 1
-
- save_usrlib="libquadmath.so.0.0.0 libstdc++.so.6.0.28 libitm.so.1.0.0 libatomic.so.1.2.0"
-
- pushd "${LFS}"/usr/lib || exit 1
-
- for LIB in $save_usrlib; do
- sudo objcopy --only-keep-debug "${LIB}" "${LIB}".dbg
- sudo strip --strip-unneeded "${LIB}"
- sudo objcopy --add-gnu-debuglink="${LIB}".dbg "${LIB}"
- done
-
- popd || exit 1
-
- sudo find "${LFS}"/usr/lib -type f -name \*.a -exec strip --strip-debug {} ';'
- sudo find "${LFS}"/lib -type f -name \*.so* ! -name \*dbg -exec strip --strip-unneeded {} ';'
- sudo find "${LFS}"/usr/lib -type f -name \*.so* ! -name \*dbg -exec strip --strip-unneeded {} ';'
-
-
- sudo find "${LFS}"/bin -type f -exec strip --strip-all {} ';'
- sudo find "${LFS}"/sbin -type f -exec strip --strip-all {} ';'
- sudo find "${LFS}"/usr/bin -type f -exec strip --strip-all {} ';'
- sudo find "${LFS}"/usr/sbin -type f -exec strip --strip-all {} ';'
- sudo find "${LFS}"/usr/libexec -type f -exec strip --strip-all {} ';'
-
-
-} >"${LFS}"/sources/log/chapter8/cleanup.log 2>&1
-
- success "OK"
- sudo touch "${LFS}"/sources/chapter8/cleanup >/dev/null 2>&1
-fi
+#!/bin/bash
+set -e
+
+if [ -f "${LFS}/sources/chapter8/cleanup" ]; then
+ printf "%b" " ${IGRN}Cleanup already performed${RST}\n"
+else
+
+ printf "%b" "${GRN}Cleaning up ${YLW}${LFS}${RST}... "
+
+ {
+
+ sudo rm -rfv "${LFS}"/tmp/*
+ sudo rm -rfv "${LFS}"/tools
+
+ sudo find "${LFS}"/usr/lib -name \*.la -delete
+ sudo find "${LFS}"/usr/libexec -name \*.la -delete
+
+ sudo find "${LFS}"/usr -depth -name "$(uname -m)"-lfs-linux-gnu\* | xargs sudo rm -rfv
+
+ sudo sed '/tester/d' -i "${LFS}"/etc/group
+ sudo sed '/tester/d' -i "${LFS}"/etc/passwd
+ sudo rm -rfv "${LFS}"/home/tester
+
+ #sudo rm -rfv "${LFS}"/usr/share/doc
+ #sudo rm -rfv "${LFS}"/usr/share/info
+ #sudo rm -rfv "${LFS}"/usr/share/man
+
+ # Place debugging symbols for selected libraries in seprate files
+ save_lib="ld-2.33.so libc-2.33.so libpthread-2.33.so libthread_db-1.0.so"
+ pushd "${LFS}"/lib || exit 1
+
+ for LIB in $save_lib; do
+ sudo objcopy --only-keep-debug "${LIB}" "${LIB}".dbg
+ sudo strip --strip-unneeded "${LIB}"
+ sudo objcopy --add-gnu-debuglink="${LIB}".dbg "${LIB}"
+ done
+
+ popd || exit 1
+
+ save_usrlib="libquadmath.so.0.0.0 libstdc++.so.6.0.28 libitm.so.1.0.0 libatomic.so.1.2.0"
+
+ pushd "${LFS}"/usr/lib || exit 1
+
+ for LIB in $save_usrlib; do
+ sudo objcopy --only-keep-debug "${LIB}" "${LIB}".dbg
+ sudo strip --strip-unneeded "${LIB}"
+ sudo objcopy --add-gnu-debuglink="${LIB}".dbg "${LIB}"
+ done
+
+ popd || exit 1
+
+ sudo find "${LFS}"/usr/lib -type f -name \*.a -exec strip --strip-debug {} ';'
+ sudo find "${LFS}"/lib -type f -name \*.so* ! -name \*dbg -exec strip --strip-unneeded {} ';'
+ sudo find "${LFS}"/usr/lib -type f -name \*.so* ! -name \*dbg -exec strip --strip-unneeded {} ';'
+
+
+ sudo find "${LFS}"/bin -type f -exec strip --strip-all {} ';'
+ sudo find "${LFS}"/sbin -type f -exec strip --strip-all {} ';'
+ sudo find "${LFS}"/usr/bin -type f -exec strip --strip-all {} ';'
+ sudo find "${LFS}"/usr/sbin -type f -exec strip --strip-all {} ';'
+ sudo find "${LFS}"/usr/libexec -type f -exec strip --strip-all {} ';'
+
+
+} >"${LFS}"/sources/log/chapter8/cleanup.log 2>&1
+
+ success "OK"
+ sudo touch "${LFS}"/sources/chapter8/cleanup >/dev/null 2>&1
+fi
diff --git a/chapter8/coreutils.sh b/chapter8/coreutils.sh
index 1ee5efa..e5373f8 100644
--- a/chapter8/coreutils.sh
+++ b/chapter8/coreutils.sh
@@ -1,23 +1,23 @@
-#!/bin/bash
-set -e
-
-patch -Np1 -i ../coreutils-"${VERSION}"-i18n-1.patch &&
-
-sed -i '/test.lock/s/^/#/' gnulib-tests/gnulib.mk &&
-
-autoreconf -fiv &&
-FORCE_UNSAFE_CONFIGURE=1 ./configure \
- --prefix=/usr \
- --enable-no-install-program=kill,uptime &&
-
-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 &&
-mv -v /usr/bin/{head,nice,sleep,touch} /bin
+#!/bin/bash
+set -e
+
+patch -Np1 -i ../coreutils-"${VERSION}"-i18n-1.patch &&
+
+sed -i '/test.lock/s/^/#/' gnulib-tests/gnulib.mk &&
+
+autoreconf -fiv &&
+FORCE_UNSAFE_CONFIGURE=1 ./configure \
+ --prefix=/usr \
+ --enable-no-install-program=kill,uptime &&
+
+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 &&
+mv -v /usr/bin/{head,nice,sleep,touch} /bin
diff --git a/chapter8/dejagnu.sh b/chapter8/dejagnu.sh
index 41ab6fc..e495e5c 100644
--- a/chapter8/dejagnu.sh
+++ b/chapter8/dejagnu.sh
@@ -1,10 +1,10 @@
-#!/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 &&
-
-make -j1 install &&
-install -v -dm755 /usr/share/doc/dejagnu-"${VERSION}" &&
-install -v -m644 doc/dejagnu.{html,txt} /usr/share/doc/dejagnu-"${VERSION}"
+#!/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 &&
+
+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 cb58e2e..eb7f4fe 100644
--- a/chapter8/diffutils.sh
+++ b/chapter8/diffutils.sh
@@ -1,8 +1,8 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr &&
-
-make &&
-
-make -j1 install
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr &&
+
+make &&
+
+make -j1 install
diff --git a/chapter8/e2fsprogs.sh b/chapter8/e2fsprogs.sh
index b994c4e..fff8359 100644
--- a/chapter8/e2fsprogs.sh
+++ b/chapter8/e2fsprogs.sh
@@ -1,26 +1,26 @@
-#!/bin/bash
-set -e
-
-mkdir -v build
-cd build || exit 1
-
-../configure --prefix=/usr \
- --bindir=/bin \
- --with-root-prefix="" \
- --enable-elf-shlibs \
- --disable-libblkid \
- --disable-libuuid \
- --disable-uuidd \
- --disable-fsck &&
-
-make &&
-
-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 &&
-
-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
+#!/bin/bash
+set -e
+
+mkdir -v build
+cd build || exit 1
+
+../configure --prefix=/usr \
+ --bindir=/bin \
+ --with-root-prefix="" \
+ --enable-elf-shlibs \
+ --disable-libblkid \
+ --disable-libuuid \
+ --disable-uuidd \
+ --disable-fsck &&
+
+make &&
+
+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 &&
+
+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 31e8a0c..b957a21 100644
--- a/chapter8/eudev.sh
+++ b/chapter8/eudev.sh
@@ -1,25 +1,25 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr \
- --bindir=/sbin \
- --sbindir=/sbin \
- --libdir=/usr/lib \
- --sysconfdir=/etc \
- --libexecdir=/lib \
- --with-rootprefix= \
- --with-rootlibdir=/lib \
- --enable-manpages \
- --disable-static &&
-
-make &&
-
-mkdir -pv /lib/udev/rules.d &&
-mkdir -pv /etc/udev/rules.d &&
-
-make -j1 install &&
-
-tar -xvf ../udev-lfs-20171102.tar.xz &&
-make -f udev-lfs-20171102/Makefile.lfs install &&
-
-udevadm hwdb --update
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --bindir=/sbin \
+ --sbindir=/sbin \
+ --libdir=/usr/lib \
+ --sysconfdir=/etc \
+ --libexecdir=/lib \
+ --with-rootprefix= \
+ --with-rootlibdir=/lib \
+ --enable-manpages \
+ --disable-static &&
+
+make &&
+
+mkdir -pv /lib/udev/rules.d &&
+mkdir -pv /etc/udev/rules.d &&
+
+make -j1 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 433062c..67fee6b 100644
--- a/chapter8/expat.sh
+++ b/chapter8/expat.sh
@@ -1,12 +1,12 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr \
- --disable-static \
- --docdir=/usr/share/doc/expat-"${VERSION}" &&
-
-make &&
-
-make -j1 install &&
-
-install -v -m644 doc/*.{html,png,css} /usr/share/doc/expat-"${VERSION}"
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --disable-static \
+ --docdir=/usr/share/doc/expat-"${VERSION}" &&
+
+make &&
+
+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 b939278..bc1ffd7 100644
--- a/chapter8/expect.sh
+++ b/chapter8/expect.sh
@@ -1,12 +1,12 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr \
- --with-tcl=/usr/lib \
- --enable-shared \
- --mandir=/usr/share/man \
- --with-tclinclude=/usr/include &&
-
-make &&
-make -j1 install &&
-ln -svf expect"${VERSION}"/libexpect"${VERSION}".so /usr/lib
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --with-tcl=/usr/lib \
+ --enable-shared \
+ --mandir=/usr/share/man \
+ --with-tclinclude=/usr/include &&
+
+make &&
+make -j1 install &&
+ln -svf expect"${VERSION}"/libexpect"${VERSION}".so /usr/lib
diff --git a/chapter8/file.sh b/chapter8/file.sh
index 2c5b982..f8048e9 100644
--- a/chapter8/file.sh
+++ b/chapter8/file.sh
@@ -1,9 +1,9 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr &&
-make &&
-make -j1 install &&
-
-mv -v /usr/lib/libmagic.so.* /lib &&
-ln -sfv ../../lib/"$(readlink /usr/lib/libmagic.so)" /usr/lib/libmagic.so
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr &&
+make &&
+make -j1 install &&
+
+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 255591c..b28409c 100644
--- a/chapter8/findutils.sh
+++ b/chapter8/findutils.sh
@@ -1,12 +1,12 @@
-#!/bin/bash
-# shellcheck disable=SC2016
-
-./configure --prefix=/usr --localstatedir=/var/lib/locate &&
-
-make &&
-
-make -j1 install &&
-
-mv -v /usr/bin/find /bin &&
-
-sed -i 's|find:=${BINDIR}|find:=/bin|' /usr/bin/updatedb
+#!/bin/bash
+# shellcheck disable=SC2016
+
+./configure --prefix=/usr --localstatedir=/var/lib/locate &&
+
+make &&
+
+make -j1 install &&
+
+mv -v /usr/bin/find /bin &&
+
+sed -i 's|find:=${BINDIR}|find:=/bin|' /usr/bin/updatedb
diff --git a/chapter8/flex.sh b/chapter8/flex.sh
index bf62717..849f8f7 100644
--- a/chapter8/flex.sh
+++ b/chapter8/flex.sh
@@ -1,11 +1,11 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr \
- --docdir=/usr/share/doc/flex-"${VERSION}" \
- --disable-static &&
-
-make &&
-
-make -j1 install &&
-ln -sv flex /usr/bin/lex
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --docdir=/usr/share/doc/flex-"${VERSION}" \
+ --disable-static &&
+
+make &&
+
+make -j1 install &&
+ln -sv flex /usr/bin/lex
diff --git a/chapter8/gawk.sh b/chapter8/gawk.sh
index b6f25c5..348c3df 100644
--- a/chapter8/gawk.sh
+++ b/chapter8/gawk.sh
@@ -1,13 +1,13 @@
-#!/bin/bash
-set -e
-
-sed -i 's/extras//' Makefile.in
-
-./configure --prefix=/usr &&
-
-make &&
-
-make -j1 install &&
-
-mkdir -v /usr/share/doc/gawk-"${VERSION}" &&
-cp -v doc/{awkforai.txt,*.{eps,pdf,jpg}} /usr/share/doc/gawk-"${VERSION}"
+#!/bin/bash
+set -e
+
+sed -i 's/extras//' Makefile.in
+
+./configure --prefix=/usr &&
+
+make &&
+
+make -j1 install &&
+
+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 c72e737..9b0f8f7 100644
--- a/chapter8/gcc.sh
+++ b/chapter8/gcc.sh
@@ -1,47 +1,47 @@
-#!/bin/bash
-set -e
-
-case $(uname -m) in
- x86_64)
- sed -e '/m64=/s/lib64/lib/' \
- -i.orig gcc/config/i386/t-linux64
- ;;
-esac
-
-mkdir -v build
-cd build || exit 1
-
-../configure --prefix=/usr \
- LD=ld \
- --enable-languages=c,c++ \
- --disable-multilib \
- --disable-bootstrap \
- --with-system-zlib &&
-
-make &&
-
-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} &&
-
-ln -sv ../usr/bin/cpp /lib &&
-
-ln -sfv ../../libexec/gcc/"$(gcc -dumpmachine)"/"${VERSION}"/liblto_plugin.so \
- /usr/lib/bfd-plugins/ &&
-
-echo 'int main(){}' > dummy.c
-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 &&
-
-rm -v dummy.c a.out dummy.log &&
-
-mkdir -pv /usr/share/gdb/auto-load/usr/lib &&
-mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib
+#!/bin/bash
+set -e
+
+case $(uname -m) in
+ x86_64)
+ sed -e '/m64=/s/lib64/lib/' \
+ -i.orig gcc/config/i386/t-linux64
+ ;;
+esac
+
+mkdir -v build
+cd build || exit 1
+
+../configure --prefix=/usr \
+ LD=ld \
+ --enable-languages=c,c++ \
+ --disable-multilib \
+ --disable-bootstrap \
+ --with-system-zlib &&
+
+make &&
+
+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} &&
+
+ln -sv ../usr/bin/cpp /lib &&
+
+ln -sfv ../../libexec/gcc/"$(gcc -dumpmachine)"/"${VERSION}"/liblto_plugin.so \
+ /usr/lib/bfd-plugins/ &&
+
+echo 'int main(){}' > dummy.c
+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 &&
+
+rm -v dummy.c a.out dummy.log &&
+
+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 4ecac48..28db584 100644
--- a/chapter8/gdbm.sh
+++ b/chapter8/gdbm.sh
@@ -1,10 +1,10 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr \
- --disable-static \
- --enable-libgdbm-compat &&
-
-make &&
-
-make -j1 install
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --disable-static \
+ --enable-libgdbm-compat &&
+
+make &&
+
+make -j1 install
diff --git a/chapter8/gettext.sh b/chapter8/gettext.sh
index 4685d27..d71692e 100644
--- a/chapter8/gettext.sh
+++ b/chapter8/gettext.sh
@@ -1,11 +1,11 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr \
- --disable-static \
- --docdir=/usr/share/doc/gettext-"${VERSION}" &&
-
-make &&
-
-make -j1 install &&
-chmod -v 0755 /usr/lib/preloadable_libintl.so
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --disable-static \
+ --docdir=/usr/share/doc/gettext-"${VERSION}" &&
+
+make &&
+
+make -j1 install &&
+chmod -v 0755 /usr/lib/preloadable_libintl.so
diff --git a/chapter8/glibc.sh b/chapter8/glibc.sh
index e4facd0..b22ea08 100644
--- a/chapter8/glibc.sh
+++ b/chapter8/glibc.sh
@@ -1,79 +1,79 @@
-#!/bin/bash
-# shellcheck disable=SC2016
-
-patch -Np1 -i ../glibc-"${VERSION}"-fhs-1.patch &&
-
-sed -e '402a\ *result = local->data.services[database_index];' \
- -i nss/nss_database.c &&
-
-mkdir -v build
-cd build || exit 1
-
-../configure --prefix=/usr \
- --disable-werror \
- --enable-kernel=5.10.0 \
- --enable-stack-protector=strong \
- --with-headers=/usr/include \
- libc_cv_slibdir=/lib &&
-
-make PARALLELMFLAGS="${MAKEFLAGS}" &&
-
-touch /etc/ld.so.conf &&
-
-sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile &&
-
-make -j1 install &&
-
-cp -v ../nscd/nscd.conf /etc/nscd.conf &&
-mkdir -pv /var/cache/nscd &&
-
-make localedata/install-locales &&
-
-cat > /etc/nsswitch.conf << "EOF"
-# Begin /etc/nsswitch.conf
-
-passwd: files
-group: files
-shadow: files
-
-hosts: files dns
-networks: files
-
-protocols: files
-services: files
-ethers: files
-rpc: files
-
-# End /etc/nsswitch.conf
-EOF
-
-tar -xf ../../tzdata2021a.tar.gz &&
-
-ZONEINFO=/usr/share/zoneinfo
-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 leapseconds -d "${ZONEINFO}"/right "${tz}"
-done
-
-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 &&
-
-cat > /etc/ld.so.conf << "EOF"
-# Begin /etc/ld.so.conf
-/usr/local/lib
-/opt/lib
-
-EOF
-
-cat >> /etc/ld.so.conf << "EOF"
-# Add an include directory
-include /etc/ld.so.conf.d/*.conf
-
-EOF
-mkdir -pv /etc/ld.so.conf.d
+#!/bin/bash
+# shellcheck disable=SC2016
+
+patch -Np1 -i ../glibc-"${VERSION}"-fhs-1.patch &&
+
+sed -e '402a\ *result = local->data.services[database_index];' \
+ -i nss/nss_database.c &&
+
+mkdir -v build
+cd build || exit 1
+
+../configure --prefix=/usr \
+ --disable-werror \
+ --enable-kernel=5.10.0 \
+ --enable-stack-protector=strong \
+ --with-headers=/usr/include \
+ libc_cv_slibdir=/lib &&
+
+make PARALLELMFLAGS="${MAKEFLAGS}" &&
+
+touch /etc/ld.so.conf &&
+
+sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile &&
+
+make -j1 install &&
+
+cp -v ../nscd/nscd.conf /etc/nscd.conf &&
+mkdir -pv /var/cache/nscd &&
+
+make localedata/install-locales &&
+
+cat > /etc/nsswitch.conf << "EOF"
+# Begin /etc/nsswitch.conf
+
+passwd: files
+group: files
+shadow: files
+
+hosts: files dns
+networks: files
+
+protocols: files
+services: files
+ethers: files
+rpc: files
+
+# End /etc/nsswitch.conf
+EOF
+
+tar -xf ../../tzdata2021a.tar.gz &&
+
+ZONEINFO=/usr/share/zoneinfo
+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 leapseconds -d "${ZONEINFO}"/right "${tz}"
+done
+
+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 &&
+
+cat > /etc/ld.so.conf << "EOF"
+# Begin /etc/ld.so.conf
+/usr/local/lib
+/opt/lib
+
+EOF
+
+cat >> /etc/ld.so.conf << "EOF"
+# Add an include directory
+include /etc/ld.so.conf.d/*.conf
+
+EOF
+mkdir -pv /etc/ld.so.conf.d
diff --git a/chapter8/gmp.sh b/chapter8/gmp.sh
index f3adfe7..7e0f180 100644
--- a/chapter8/gmp.sh
+++ b/chapter8/gmp.sh
@@ -1,17 +1,17 @@
-#!/bin/bash
-set -e
-
-# Uncomment for generic libraries
-# cp -v configfsf.guess config.guess
-# cp -v configfsf.sub config.sub
-
-./configure --prefix=/usr \
- --enable-cxx \
- --disable-static \
- --docdir=/usr/share/doc/gmp-"${VERSION}" &&
-
-make &&
-make html &&
-
-make -j1 install &&
-make -j1 install-html
+#!/bin/bash
+set -e
+
+# Uncomment for generic libraries
+# cp -v configfsf.guess config.guess
+# cp -v configfsf.sub config.sub
+
+./configure --prefix=/usr \
+ --enable-cxx \
+ --disable-static \
+ --docdir=/usr/share/doc/gmp-"${VERSION}" &&
+
+make &&
+make html &&
+
+make -j1 install &&
+make -j1 install-html
diff --git a/chapter8/gperf.sh b/chapter8/gperf.sh
index bb69b31..bcd5f66 100644
--- a/chapter8/gperf.sh
+++ b/chapter8/gperf.sh
@@ -1,8 +1,8 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr --docdir=/usr/share/doc/gperf-"${VERSION}" &&
-
-make &&
-
-make -j1 install
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr --docdir=/usr/share/doc/gperf-"${VERSION}" &&
+
+make &&
+
+make -j1 install
diff --git a/chapter8/grep.sh b/chapter8/grep.sh
index 5604bec..7766644 100644
--- a/chapter8/grep.sh
+++ b/chapter8/grep.sh
@@ -1,8 +1,8 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr --bindir=/bin &&
-
-make &&
-
-make -j1 install
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr --bindir=/bin &&
+
+make &&
+
+make -j1 install
diff --git a/chapter8/groff.sh b/chapter8/groff.sh
index 73b4b93..f0ce12c 100644
--- a/chapter8/groff.sh
+++ b/chapter8/groff.sh
@@ -1,8 +1,8 @@
-#!/bin/bash
-set -e
-
-PAGE=letter ./configure --prefix=/usr &&
-
-make &&
-
-make -j1 install
+#!/bin/bash
+set -e
+
+PAGE=letter ./configure --prefix=/usr &&
+
+make &&
+
+make -j1 install
diff --git a/chapter8/grub.sh b/chapter8/grub.sh
index 128cdb9..da53f76 100644
--- a/chapter8/grub.sh
+++ b/chapter8/grub.sh
@@ -1,16 +1,16 @@
-#!/bin/bash
-set -e
-
-sed "s/gold-version/& -R .note.gnu.property/" \
- -i Makefile.in grub-core/Makefile.in &&
-
-./configure --prefix=/usr \
- --sbindir=/sbin \
- --sysconfdir=/etc \
- --disable-efiemu \
- --disable-werror &&
-
-make &&
-
-make -j1 install &&
-mv -v /etc/bash_completion.d/grub /usr/share/bash-completion/completions
+#!/bin/bash
+set -e
+
+sed "s/gold-version/& -R .note.gnu.property/" \
+ -i Makefile.in grub-core/Makefile.in &&
+
+./configure --prefix=/usr \
+ --sbindir=/sbin \
+ --sysconfdir=/etc \
+ --disable-efiemu \
+ --disable-werror &&
+
+make &&
+
+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 f72a689..0cef2c6 100644
--- a/chapter8/gzip.sh
+++ b/chapter8/gzip.sh
@@ -1,10 +1,10 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr &&
-
-make &&
-
-make -j1 install &&
-
-mv -v /usr/bin/gzip /bin
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr &&
+
+make &&
+
+make -j1 install &&
+
+mv -v /usr/bin/gzip /bin
diff --git a/chapter8/iana-etc.sh b/chapter8/iana-etc.sh
index be58311..1286b14 100644
--- a/chapter8/iana-etc.sh
+++ b/chapter8/iana-etc.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
-set -e
-
-cp -v services protocols /etc
+#!/bin/bash
+set -e
+
+cp -v services protocols /etc
diff --git a/chapter8/inetutils.sh b/chapter8/inetutils.sh
index 572c9e9..9604111 100644
--- a/chapter8/inetutils.sh
+++ b/chapter8/inetutils.sh
@@ -1,19 +1,19 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr \
- --localstatedir=/var \
- --disable-logger \
- --disable-whois \
- --disable-rcp \
- --disable-rexec \
- --disable-rlogin \
- --disable-rsh \
- --disable-servers &&
-
-make &&
-
-make -j1 install &&
-
-mv -v /usr/bin/{hostname,ping,ping6,traceroute} /bin &&
-mv -v /usr/bin/ifconfig /sbin
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --localstatedir=/var \
+ --disable-logger \
+ --disable-whois \
+ --disable-rcp \
+ --disable-rexec \
+ --disable-rlogin \
+ --disable-rsh \
+ --disable-servers &&
+
+make &&
+
+make -j1 install &&
+
+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 758f568..4dbe573 100644
--- a/chapter8/intltool.sh
+++ b/chapter8/intltool.sh
@@ -1,11 +1,11 @@
-#!/bin/bash
-set -e
-
-sed -i 's:\\\${:\\\$\\{:' intltool-update.in &&
-
-./configure --prefix=/usr &&
-
-make &&
-
-make -j1 install &&
-install -v -Dm644 doc/I18N-HOWTO /usr/share/doc/intltool-"${VERSION}"/I18N-HOWTO
+#!/bin/bash
+set -e
+
+sed -i 's:\\\${:\\\$\\{:' intltool-update.in &&
+
+./configure --prefix=/usr &&
+
+make &&
+
+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 8612d5d..cb8dd77 100644
--- a/chapter8/iproute2.sh
+++ b/chapter8/iproute2.sh
@@ -1,11 +1,11 @@
-#!/bin/bash
-set -e
-
-sed -i /ARPD/d Makefile &&
-rm -fv man/man8/arpd.8 &&
-
-sed -i 's/.m_ipt.o//' tc/Makefile &&
-
-make &&
-
-make DOCDIR=/usr/share/doc/iproute2-"${VERSION}" -j1 install
+#!/bin/bash
+set -e
+
+sed -i /ARPD/d Makefile &&
+rm -fv man/man8/arpd.8 &&
+
+sed -i 's/.m_ipt.o//' tc/Makefile &&
+
+make &&
+
+make DOCDIR=/usr/share/doc/iproute2-"${VERSION}" -j1 install
diff --git a/chapter8/isl.sh b/chapter8/isl.sh
index 87ee2fb..2a2c87a 100644
--- a/chapter8/isl.sh
+++ b/chapter8/isl.sh
@@ -1,12 +1,12 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr \
- --disable-static \
- --docdir=/usr/share/doc/isl-"${VERSION}" &&
-
-make &&
-make html &&
-
-make -j1 install &&
-make -j1 install-html
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --disable-static \
+ --docdir=/usr/share/doc/isl-"${VERSION}" &&
+
+make &&
+make html &&
+
+make -j1 install &&
+make -j1 install-html
diff --git a/chapter8/kbd.sh b/chapter8/kbd.sh
index 3e76d8c..25565ac 100644
--- a/chapter8/kbd.sh
+++ b/chapter8/kbd.sh
@@ -1,16 +1,16 @@
-#!/bin/bash
-set -e
-
-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 &&
-
-./configure --prefix=/usr --disable-vlock &&
-
-make &&
-
-make -j1 install &&
-
-mkdir -v /usr/share/doc/kbd-"${VERSION}" &&
-cp -R -v docs/doc/* /usr/share/doc/kbd-"${VERSION}"
+#!/bin/bash
+set -e
+
+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 &&
+
+./configure --prefix=/usr --disable-vlock &&
+
+make &&
+
+make -j1 install &&
+
+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 036a8fc..36a2da7 100644
--- a/chapter8/kmod.sh
+++ b/chapter8/kmod.sh
@@ -1,20 +1,20 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr \
- --bindir=/bin \
- --sysconfdir=/etc \
- --with-rootlibdir=/lib \
- --with-xz \
- --with-zstd \
- --with-zlib &&
-
-make &&
-
-make -j1 install &&
-
-for target in depmod insmod lsmod modinfo modprobe rmmod; do
- ln -sfv ../bin/kmod /sbin/"${target}"
-done
-
-ln -sfv kmod /bin/lsmod
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --bindir=/bin \
+ --sysconfdir=/etc \
+ --with-rootlibdir=/lib \
+ --with-xz \
+ --with-zstd \
+ --with-zlib &&
+
+make &&
+
+make -j1 install &&
+
+for target in depmod insmod lsmod modinfo modprobe rmmod; do
+ ln -sfv ../bin/kmod /sbin/"${target}"
+done
+
+ln -sfv kmod /bin/lsmod
diff --git a/chapter8/less.sh b/chapter8/less.sh
index 6f357a9..026e700 100644
--- a/chapter8/less.sh
+++ b/chapter8/less.sh
@@ -1,8 +1,8 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr --sysconfdir=/etc &&
-
-make &&
-
-make -j1 install
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr --sysconfdir=/etc &&
+
+make &&
+
+make -j1 install
diff --git a/chapter8/libcap.sh b/chapter8/libcap.sh
index 33d374c..b9f6bf1 100644
--- a/chapter8/libcap.sh
+++ b/chapter8/libcap.sh
@@ -1,13 +1,13 @@
-#!/bin/bash
-set -e
-
-sed -i '/install -m.*STA/d' libcap/Makefile &&
-
-make prefix=/usr lib=lib &&
-
-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 &&
- chmod -v 755 /lib/lib"${libname}".so."${VERSION}"
-done
+#!/bin/bash
+set -e
+
+sed -i '/install -m.*STA/d' libcap/Makefile &&
+
+make prefix=/usr lib=lib &&
+
+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 &&
+ chmod -v 755 /lib/lib"${libname}".so."${VERSION}"
+done
diff --git a/chapter8/libelf.sh b/chapter8/libelf.sh
index e5323e0..dc59392 100644
--- a/chapter8/libelf.sh
+++ b/chapter8/libelf.sh
@@ -1,13 +1,13 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr \
- --disable-debuginfod \
- --enable-libdebuginfod=dummy \
- --libdir=/lib &&
-
-make &&
-
-make -C libelf -j1 install &&
-install -vm644 config/libelf.pc /usr/lib/pkgconfig &&
-rm /lib/libelf.a
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --disable-debuginfod \
+ --enable-libdebuginfod=dummy \
+ --libdir=/lib &&
+
+make &&
+
+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 ed8b1e5..af96ea3 100644
--- a/chapter8/libffi.sh
+++ b/chapter8/libffi.sh
@@ -1,8 +1,8 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr --disable-static --with-gcc-arch=native &&
-
-make &&
-
-make -j1 install
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr --disable-static --with-gcc-arch=native &&
+
+make &&
+
+make -j1 install
diff --git a/chapter8/libpipeline.sh b/chapter8/libpipeline.sh
index cb58e2e..eb7f4fe 100644
--- a/chapter8/libpipeline.sh
+++ b/chapter8/libpipeline.sh
@@ -1,8 +1,8 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr &&
-
-make &&
-
-make -j1 install
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr &&
+
+make &&
+
+make -j1 install
diff --git a/chapter8/libtool.sh b/chapter8/libtool.sh
index a654e29..65b633e 100644
--- a/chapter8/libtool.sh
+++ b/chapter8/libtool.sh
@@ -1,10 +1,10 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr &&
-
-make &&
-
-make -j1 install &&
-
-rm -fv /usr/lib/libltdl.a
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr &&
+
+make &&
+
+make -j1 install &&
+
+rm -fv /usr/lib/libltdl.a
diff --git a/chapter8/m4.sh b/chapter8/m4.sh
index 8c6201b..4eeade0 100644
--- a/chapter8/m4.sh
+++ b/chapter8/m4.sh
@@ -1,9 +1,9 @@
-#!/bin/bash
-set -e
-
-sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c &&
-echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h &&
-
-./configure --prefix=/usr &&
-make &&
-make -j1 install
+#!/bin/bash
+set -e
+
+sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c &&
+echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h &&
+
+./configure --prefix=/usr &&
+make &&
+make -j1 install
diff --git a/chapter8/make.sh b/chapter8/make.sh
index cb58e2e..eb7f4fe 100644
--- a/chapter8/make.sh
+++ b/chapter8/make.sh
@@ -1,8 +1,8 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr &&
-
-make &&
-
-make -j1 install
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr &&
+
+make &&
+
+make -j1 install
diff --git a/chapter8/man-db.sh b/chapter8/man-db.sh
index afa8cb0..4b544eb 100644
--- a/chapter8/man-db.sh
+++ b/chapter8/man-db.sh
@@ -1,17 +1,17 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr \
- --docdir=/usr/share/doc/man-db-"${VERSION}" \
- --sysconfdir=/etc \
- --disable-setuid \
- --enable-cache-owner=bin \
- --with-browser=/usr/bin/lynx \
- --with-vgrind=/usr/bin/vgrind \
- --with-grap=/usr/bin/grap \
- --with-systemdtmpfilesdir= \
- --with-systemdsystemunitdir= &&
-
-make &&
-
-make -j1 install
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --docdir=/usr/share/doc/man-db-"${VERSION}" \
+ --sysconfdir=/etc \
+ --disable-setuid \
+ --enable-cache-owner=bin \
+ --with-browser=/usr/bin/lynx \
+ --with-vgrind=/usr/bin/vgrind \
+ --with-grap=/usr/bin/grap \
+ --with-systemdtmpfilesdir= \
+ --with-systemdsystemunitdir= &&
+
+make &&
+
+make -j1 install
diff --git a/chapter8/man-pages.sh b/chapter8/man-pages.sh
index c019094..d81d179 100644
--- a/chapter8/man-pages.sh
+++ b/chapter8/man-pages.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
-set -e
-
-make -j1 install
+#!/bin/bash
+set -e
+
+make -j1 install
diff --git a/chapter8/meson.sh b/chapter8/meson.sh
index b1aa296..911f950 100644
--- a/chapter8/meson.sh
+++ b/chapter8/meson.sh
@@ -1,9 +1,9 @@
-#!/bin/bash
-set -e
-
-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 &&
-install -vDm644 data/shell-completions/zsh/_meson /usr/share/zsh/site-functions/_meson
+#!/bin/bash
+set -e
+
+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 &&
+install -vDm644 data/shell-completions/zsh/_meson /usr/share/zsh/site-functions/_meson
diff --git a/chapter8/mpc.sh b/chapter8/mpc.sh
index 009662c..e494bbb 100644
--- a/chapter8/mpc.sh
+++ b/chapter8/mpc.sh
@@ -1,12 +1,12 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr \
- --disable-static \
- --docdir=/usr/share/doc/mpc-"${VERSION}" &&
-
-make &&
-make html &&
-
-make -j1 install &&
-make -j1 install-html
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --disable-static \
+ --docdir=/usr/share/doc/mpc-"${VERSION}" &&
+
+make &&
+make html &&
+
+make -j1 install &&
+make -j1 install-html
diff --git a/chapter8/mpfr.sh b/chapter8/mpfr.sh
index c76276e..762cfad 100644
--- a/chapter8/mpfr.sh
+++ b/chapter8/mpfr.sh
@@ -1,13 +1,13 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr \
- --disable-static \
- --enable-thread-safe \
- --docdir=/usr/share/doc/mpfr-"${VERSION}" &&
-
-make &&
-make html &&
-
-make -j1 install &&
-make -j1 install-html
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --disable-static \
+ --enable-thread-safe \
+ --docdir=/usr/share/doc/mpfr-"${VERSION}" &&
+
+make &&
+make html &&
+
+make -j1 install &&
+make -j1 install-html
diff --git a/chapter8/ncurses.sh b/chapter8/ncurses.sh
index 94d1b3c..c2640c5 100644
--- a/chapter8/ncurses.sh
+++ b/chapter8/ncurses.sh
@@ -1,32 +1,32 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr \
- --mandir=/usr/share/man \
- --with-shared \
- --without-debug \
- --without-normal \
- --enable-pc-files \
- --enable-widec \
- --with-termlib \
- --disable-tic-depends &&
-
-make &&
-make -j1 install &&
-
-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 tinfo ; do
- 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 -fv /usr/lib/libncurses++w.a &&
-
-mkdir -v /usr/share/doc/ncurses-"${VERSION}" &&
-cp -v -R doc/* /usr/share/doc/ncurses-"${VERSION}"
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --with-shared \
+ --without-debug \
+ --without-normal \
+ --enable-pc-files \
+ --enable-widec \
+ --with-termlib \
+ --disable-tic-depends &&
+
+make &&
+make -j1 install &&
+
+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 tinfo ; do
+ 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 -fv /usr/lib/libncurses++w.a &&
+
+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 f4f1017..3d1beea 100644
--- a/chapter8/ninja.sh
+++ b/chapter8/ninja.sh
@@ -1,18 +1,18 @@
-#!/bin/bash
-set -e
-
-export NINJAJOBS=4
-
-# shellcheck disable=SC1004
-sed -i '/int Guess/a \
- int j = 0;\
- char* jobs = getenv( "NINJAJOBS" );\
- if ( jobs != NULL ) j = atoi( jobs );\
- if ( j > 0 ) return j;\
-' src/ninja.cc &&
-
-python3 configure.py --bootstrap &&
-
-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
+#!/bin/bash
+set -e
+
+export NINJAJOBS=4
+
+# shellcheck disable=SC1004
+sed -i '/int Guess/a \
+ int j = 0;\
+ char* jobs = getenv( "NINJAJOBS" );\
+ if ( jobs != NULL ) j = atoi( jobs );\
+ if ( j > 0 ) return j;\
+' src/ninja.cc &&
+
+python3 configure.py --bootstrap &&
+
+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 59699f5..414168f 100644
--- a/chapter8/openssl.sh
+++ b/chapter8/openssl.sh
@@ -1,17 +1,17 @@
-#!/bin/bash
-set -e
-
-./config --prefix=/usr \
- --openssldir=/etc/ssl \
- --libdir=lib \
- shared \
- zlib-dynamic &&
-
-make &&
-
-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}" &&
-
-cp -vfr doc/* /usr/share/doc/openssl-"${VERSION}"
+#!/bin/bash
+set -e
+
+./config --prefix=/usr \
+ --openssldir=/etc/ssl \
+ --libdir=lib \
+ shared \
+ zlib-dynamic &&
+
+make &&
+
+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}" &&
+
+cp -vfr doc/* /usr/share/doc/openssl-"${VERSION}"
diff --git a/chapter8/patch.sh b/chapter8/patch.sh
index cb58e2e..eb7f4fe 100644
--- a/chapter8/patch.sh
+++ b/chapter8/patch.sh
@@ -1,8 +1,8 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr &&
-
-make &&
-
-make -j1 install
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr &&
+
+make &&
+
+make -j1 install
diff --git a/chapter8/perl.sh b/chapter8/perl.sh
index 7e5cbc7..5097e8a 100644
--- a/chapter8/perl.sh
+++ b/chapter8/perl.sh
@@ -1,27 +1,27 @@
-#!/bin/bash
-set -e
-
-MAJMIN="$(cut -d\. -f1,2 <<< "${VERSION}")"
-
-export BUILD_ZLIB=False
-export BUILD_BZIP2=0
-
-sh Configure -des \
- -Dprefix=/usr \
- -Dvendorprefix=/usr \
- -Dprivlib=/usr/lib/perl5/"${MAJMIN}"/core_perl \
- -Darchlib=/usr/lib/perl5/"${MAJMIN}"/core_perl \
- -Dsitelib=/usr/lib/perl5/"${MAJMIN}"/site_perl \
- -Dsitearch=/usr/lib/perl5/"${MAJMIN}"/site_perl \
- -Dvendorlib=/usr/lib/perl5/"${MAJMIN}"/vendor_perl \
- -Dvendorarch=/usr/lib/perl5/"${MAJMIN}"/vendor_perl \
- -Dman1dir=/usr/share/man/man1 \
- -Dman3dir=/usr/share/man/man3 \
- -Dpager="/usr/bin/less -isR" \
- -Duseshrplib \
- -Dusethreads &&
-
-make &&
-
-make -j1 install &&
-unset BUILD_ZLIB BUILD_BZIP2
+#!/bin/bash
+set -e
+
+MAJMIN="$(cut -d\. -f1,2 <<< "${VERSION}")"
+
+export BUILD_ZLIB=False
+export BUILD_BZIP2=0
+
+sh Configure -des \
+ -Dprefix=/usr \
+ -Dvendorprefix=/usr \
+ -Dprivlib=/usr/lib/perl5/"${MAJMIN}"/core_perl \
+ -Darchlib=/usr/lib/perl5/"${MAJMIN}"/core_perl \
+ -Dsitelib=/usr/lib/perl5/"${MAJMIN}"/site_perl \
+ -Dsitearch=/usr/lib/perl5/"${MAJMIN}"/site_perl \
+ -Dvendorlib=/usr/lib/perl5/"${MAJMIN}"/vendor_perl \
+ -Dvendorarch=/usr/lib/perl5/"${MAJMIN}"/vendor_perl \
+ -Dman1dir=/usr/share/man/man1 \
+ -Dman3dir=/usr/share/man/man3 \
+ -Dpager="/usr/bin/less -isR" \
+ -Duseshrplib \
+ -Dusethreads &&
+
+make &&
+
+make -j1 install &&
+unset BUILD_ZLIB BUILD_BZIP2
diff --git a/chapter8/pkg-config.sh b/chapter8/pkg-config.sh
index e404f44..bff8212 100644
--- a/chapter8/pkg-config.sh
+++ b/chapter8/pkg-config.sh
@@ -1,10 +1,10 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr \
- --with-internal-glib \
- --disable-host-tool \
- --docdir=/usr/share/doc/pkg-config-"${VERSION}" &&
-
-make &&
-make -j1 install
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --with-internal-glib \
+ --disable-host-tool \
+ --docdir=/usr/share/doc/pkg-config-"${VERSION}" &&
+
+make &&
+make -j1 install
diff --git a/chapter8/procps-ng.sh b/chapter8/procps-ng.sh
index 85be2d6..dabdb64 100644
--- a/chapter8/procps-ng.sh
+++ b/chapter8/procps-ng.sh
@@ -1,16 +1,16 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr \
- --exec-prefix= \
- --libdir=/usr/lib \
- --docdir=/usr/share/doc/procps-ng-"${VERSION}" \
- --disable-static \
- --disable-kill &&
-
-make &&
-
-make -j1 install &&
-
-mv -v /usr/lib/libprocps.so.* /lib &&
-ln -sfv ../../lib/"$(readlink /usr/lib/libprocps.so)" /usr/lib/libprocps.so
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --exec-prefix= \
+ --libdir=/usr/lib \
+ --docdir=/usr/share/doc/procps-ng-"${VERSION}" \
+ --disable-static \
+ --disable-kill &&
+
+make &&
+
+make -j1 install &&
+
+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 e06ef92..ff1e578 100644
--- a/chapter8/psmisc.sh
+++ b/chapter8/psmisc.sh
@@ -1,11 +1,11 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr &&
-
-make &&
-
-make -j1 install &&
-
-mv -v /usr/bin/fuser /bin &&
-mv -v /usr/bin/killall /bin
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr &&
+
+make &&
+
+make -j1 install &&
+
+mv -v /usr/bin/fuser /bin &&
+mv -v /usr/bin/killall /bin
diff --git a/chapter8/python.sh b/chapter8/python.sh
index 04af366..230d4f6 100644
--- a/chapter8/python.sh
+++ b/chapter8/python.sh
@@ -1,22 +1,22 @@
-#!/bin/bash
-set -e
-
-sed 's|cpython/||' -i Include/cpython/pystate.h &&
-
-./configure --prefix=/usr \
- --enable-shared \
- --with-system-expat \
- --with-system-ffi \
- --with-ensurepip=yes &&
-
-make &&
-
-make -j1 install &&
-
-install -v -dm755 /usr/share/doc/python-"${VERSION}"/html &&
-
-tar --strip-components=1 \
- --no-same-owner \
- --no-same-permissions \
- -C /usr/share/doc/python-"${VERSION}"/html \
- -xvf ../python-"${VERSION}"-docs-html.tar.bz2
+#!/bin/bash
+set -e
+
+sed 's|cpython/||' -i Include/cpython/pystate.h &&
+
+./configure --prefix=/usr \
+ --enable-shared \
+ --with-system-expat \
+ --with-system-ffi \
+ --with-ensurepip=yes &&
+
+make &&
+
+make -j1 install &&
+
+install -v -dm755 /usr/share/doc/python-"${VERSION}"/html &&
+
+tar --strip-components=1 \
+ --no-same-owner \
+ --no-same-permissions \
+ -C /usr/share/doc/python-"${VERSION}"/html \
+ -xvf ../python-"${VERSION}"-docs-html.tar.bz2
diff --git a/chapter8/readline.sh b/chapter8/readline.sh
index b35e33b..2e6f02a 100644
--- a/chapter8/readline.sh
+++ b/chapter8/readline.sh
@@ -1,20 +1,20 @@
-#!/bin/bash
-set -e
-
-sed -i '/MV.*old/d' Makefile.in &&
-sed -i '/{OLDSUFF}/c:' support/shlib-install &&
-
-./configure --prefix=/usr \
- --disable-static \
- --with-curses \
- --disable-bracketed-paste-default \
- --docdir=/usr/share/doc/readline-"${VERSION}"
-
-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 &&
-
-install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-"${VERSION}"
+#!/bin/bash
+set -e
+
+sed -i '/MV.*old/d' Makefile.in &&
+sed -i '/{OLDSUFF}/c:' support/shlib-install &&
+
+./configure --prefix=/usr \
+ --disable-static \
+ --with-curses \
+ --disable-bracketed-paste-default \
+ --docdir=/usr/share/doc/readline-"${VERSION}"
+
+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 &&
+
+install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-"${VERSION}"
diff --git a/chapter8/sed.sh b/chapter8/sed.sh
index 6b2d3d7..841ca44 100644
--- a/chapter8/sed.sh
+++ b/chapter8/sed.sh
@@ -1,12 +1,12 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr --bindir=/bin &&
-
-make &&
-make html &&
-
-make -j1 install &&
-
-install -d -m755 /usr/share/doc/sed-"${VERSION}" &&
-install -m644 doc/sed.html /usr/share/doc/sed-"${VERSION}"
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr --bindir=/bin &&
+
+make &&
+make html &&
+
+make -j1 install &&
+
+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 075caad..de902bc 100644
--- a/chapter8/shadow.sh
+++ b/chapter8/shadow.sh
@@ -1,29 +1,29 @@
-#!/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 -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD SHA512:' \
- -e 's:/var/spool/mail:/var/mail:' \
- -i etc/login.defs &&
-
-sed -i 's/1000/999/' etc/useradd &&
-
-touch /usr/bin/passwd &&
-./configure --sysconfdir=/etc \
- --with-group-name-max-length=32 &&
-
-make &&
-make -j1 install &&
-
-pwconv &&
-grpconv &&
-
-usermod -p "${ROOTPW}" root
+#!/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 -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD SHA512:' \
+ -e 's:/var/spool/mail:/var/mail:' \
+ -i etc/login.defs &&
+
+sed -i 's/1000/999/' etc/useradd &&
+
+touch /usr/bin/passwd &&
+./configure --sysconfdir=/etc \
+ --with-group-name-max-length=32 &&
+
+make &&
+make -j1 install &&
+
+pwconv &&
+grpconv &&
+
+usermod -p "${ROOTPW}" root
diff --git a/chapter8/sysklogd.sh b/chapter8/sysklogd.sh
index 26c2394..acbd79c 100644
--- a/chapter8/sysklogd.sh
+++ b/chapter8/sysklogd.sh
@@ -1,23 +1,23 @@
-#!/bin/bash
-set -e
-
-sed -i '/Error loading kernel symbols/{n;n;d}' ksym_mod.c &&
-sed -i 's/union wait/int/' syslogd.c &&
-
-make &&
-
-make BINDIR=/sbin -j1 install &&
-
-cat > /etc/syslog.conf << "EOF"
-# Begin /etc/syslog.conf
-
-auth,authpriv.* -/var/log/auth.log
-*.*;auth,authpriv.none -/var/log/sys.log
-daemon.* -/var/log/daemon.log
-kern.* -/var/log/kern.log
-mail.* -/var/log/mail.log
-user.* -/var/log/user.log
-*.emerg *
-
-# End /etc/syslog.conf
-EOF
+#!/bin/bash
+set -e
+
+sed -i '/Error loading kernel symbols/{n;n;d}' ksym_mod.c &&
+sed -i 's/union wait/int/' syslogd.c &&
+
+make &&
+
+make BINDIR=/sbin -j1 install &&
+
+cat > /etc/syslog.conf << "EOF"
+# Begin /etc/syslog.conf
+
+auth,authpriv.* -/var/log/auth.log
+*.*;auth,authpriv.none -/var/log/sys.log
+daemon.* -/var/log/daemon.log
+kern.* -/var/log/kern.log
+mail.* -/var/log/mail.log
+user.* -/var/log/user.log
+*.emerg *
+
+# End /etc/syslog.conf
+EOF
diff --git a/chapter8/sysvinit.sh b/chapter8/sysvinit.sh
index 0c0c2db..c68c10a 100644
--- a/chapter8/sysvinit.sh
+++ b/chapter8/sysvinit.sh
@@ -1,8 +1,8 @@
-#!/bin/bash
-set -e
-
-patch -Np1 -i ../sysvinit-"${VERSION}"-consolidated-1.patch &&
-
-make &&
-
-make -j1 install
+#!/bin/bash
+set -e
+
+patch -Np1 -i ../sysvinit-"${VERSION}"-consolidated-1.patch &&
+
+make &&
+
+make -j1 install
diff --git a/chapter8/tar.sh b/chapter8/tar.sh
index 44df8a1..90180b4 100644
--- a/chapter8/tar.sh
+++ b/chapter8/tar.sh
@@ -1,11 +1,11 @@
-#!/bin/bash
-set -e
-
-FORCE_UNSAFE_CONFIGURE=1 \
-./configure --prefix=/usr \
- --bindir=/bin &&
-
-make &&
-
-make -j1 install &&
-make -C doc install-html docdir=/usr/share/doc/tar-"${VERSION}"
+#!/bin/bash
+set -e
+
+FORCE_UNSAFE_CONFIGURE=1 \
+./configure --prefix=/usr \
+ --bindir=/bin &&
+
+make &&
+
+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 1e75a18..0286eff 100644
--- a/chapter8/tcl.sh
+++ b/chapter8/tcl.sh
@@ -1,36 +1,36 @@
-#!/bin/bash
-set -e
-
-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)" &&
-
-make &&
-
-sed -e "s|${SRCDIR}/unix|/usr/lib|" \
- -e "s|${SRCDIR}|/usr/include|" \
- -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 &&
-
-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 &&
-
-unset SRCDIR
-
-make -j1 install &&
-
-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
+#!/bin/bash
+set -e
+
+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)" &&
+
+make &&
+
+sed -e "s|${SRCDIR}/unix|/usr/lib|" \
+ -e "s|${SRCDIR}|/usr/include|" \
+ -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 &&
+
+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 &&
+
+unset SRCDIR
+
+make -j1 install &&
+
+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 87b0aae..152aa42 100644
--- a/chapter8/texinfo.sh
+++ b/chapter8/texinfo.sh
@@ -1,10 +1,10 @@
-#!/bin/bash
-set -e
-
-./configure --prefix=/usr &&
-
-make &&
-
-make -j1 install &&
-
-make TEXMF=/usr/share/texmf install-tex
+#!/bin/bash
+set -e
+
+./configure --prefix=/usr &&
+
+make &&
+
+make -j1 install &&
+
+make TEXMF=/usr/share/texmf install-tex
diff --git a/chapter8/util-linux.sh b/chapter8/util-linux.sh
index de1a5e4..231e741 100644
--- a/chapter8/util-linux.sh
+++ b/chapter8/util-linux.sh
@@ -1,21 +1,21 @@
-#!/bin/bash
-set -e
-
-./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
- --docdir=/usr/share/doc/util-linux-"${VERSION}" \
- --disable-chfn-chsh \
- --disable-login \
- --disable-nologin \
- --disable-su \
- --disable-setpriv \
- --disable-runuser \
- --disable-pylibmount \
- --disable-static \
- --without-python \
- --without-systemd \
- --without-systemdsystemunitdir \
- runstatedir=/run &&
-
-make &&
-
-make -j1 install
+#!/bin/bash
+set -e
+
+./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
+ --docdir=/usr/share/doc/util-linux-"${VERSION}" \
+ --disable-chfn-chsh \
+ --disable-login \
+ --disable-nologin \
+ --disable-su \
+ --disable-setpriv \
+ --disable-runuser \
+ --disable-pylibmount \
+ --disable-static \
+ --without-python \
+ --without-systemd \
+ --without-systemdsystemunitdir \
+ runstatedir=/run &&
+
+make &&
+
+make -j1 install
diff --git a/chapter8/vim.sh b/chapter8/vim.sh
index 39bb932..725c066 100644
--- a/chapter8/vim.sh
+++ b/chapter8/vim.sh
@@ -1,35 +1,35 @@
-#!/bin/bash
-set -e
-
-echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
-
-./configure --prefix=/usr &&
-
-make &&
-
-make -j1 install &&
-
-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}" &&
-
-cat > /etc/vimrc << "EOF"
-" Begin /etc/vimrc
-
-" Ensure defaults are set before customizing settings, not after
-source $VIMRUNTIME/defaults.vim
-let skip_defaults_vim=1
-
-set nocompatible
-set backspace=2
-set mouse=
-syntax on
-if (&term == "xterm") || (&term == "putty")
- set background=dark
-endif
-
-" End /etc/vimrc
-EOF
+#!/bin/bash
+set -e
+
+echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h &&
+
+./configure --prefix=/usr &&
+
+make &&
+
+make -j1 install &&
+
+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}" &&
+
+cat > /etc/vimrc << "EOF"
+" Begin /etc/vimrc
+
+" Ensure defaults are set before customizing settings, not after
+source $VIMRUNTIME/defaults.vim
+let skip_defaults_vim=1
+
+set nocompatible
+set backspace=2
+set mouse=
+syntax on
+if (&term == "xterm") || (&term == "putty")
+ set background=dark
+endif
+
+" End /etc/vimrc
+EOF
diff --git a/chapter8/xml-parser.sh b/chapter8/xml-parser.sh
index ffaa526..bf86185 100644
--- a/chapter8/xml-parser.sh
+++ b/chapter8/xml-parser.sh
@@ -1,8 +1,8 @@
-#!/bin/bash
-set -e
-
-perl Makefile.PL &&
-
-make &&
-
-make -j1 install
+#!/bin/bash
+set -e
+
+perl Makefile.PL &&
+
+make &&
+
+make -j1 install
diff --git a/chapter8/xz.sh b/chapter8/xz.sh
index 4d567c8..0d9c242 100644
--- a/chapter8/xz.sh
+++ b/chapter8/xz.sh
@@ -1,13 +1,13 @@
-#!/bin/bash
-set -e
-
-
-./configure --prefix=/usr \
- --disable-static \
- --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 &&
-ln -svf ../../lib/"$(readlink /usr/lib/liblzma.so)" /usr/lib/liblzma.so
+#!/bin/bash
+set -e
+
+
+./configure --prefix=/usr \
+ --disable-static \
+ --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 &&
+ln -svf ../../lib/"$(readlink /usr/lib/liblzma.so)" /usr/lib/liblzma.so
diff --git a/chapter8/zlib.sh b/chapter8/zlib.sh
index df67074..a5d9748 100644
--- a/chapter8/zlib.sh
+++ b/chapter8/zlib.sh
@@ -1,10 +1,10 @@
-#!/bin/bash
-set -e
-
-./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 &&
-rm -fv /usr/lib/libz.a
+#!/bin/bash
+set -e
+
+./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 &&
+rm -fv /usr/lib/libz.a
diff --git a/chapter8/zstd.sh b/chapter8/zstd.sh
index 611785e..9ea8e8e 100644
--- a/chapter8/zstd.sh
+++ b/chapter8/zstd.sh
@@ -1,9 +1,9 @@
-#!/bin/bash
-set -e
-
-make &&
-make prefix=/usr -j1 install &&
-
-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
+#!/bin/bash
+set -e
+
+make &&
+make prefix=/usr -j1 install &&
+
+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