aboutsummaryrefslogtreecommitdiffstats
path: root/insidechroot.sh
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-05 21:02:45 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-05 21:03:40 -0500
commite23af271ea30fd57305887e79114d0dd4f861211 (patch)
treeff20078bea44479aa13e49ac9433d1c105ee2454 /insidechroot.sh
parentb6925ebf059d6440d2c5dd37736cbc20e5639e41 (diff)
Have grep exit 0 without stdoutput when checking if a package is in packages.csv.
Diffstat (limited to 'insidechroot.sh')
-rw-r--r--insidechroot.sh18
1 files changed, 16 insertions, 2 deletions
diff --git a/insidechroot.sh b/insidechroot.sh
index 28cf64f..b78a4a2 100644
--- a/insidechroot.sh
+++ b/insidechroot.sh
@@ -22,7 +22,21 @@ if [[ "${CHAPTER}" -eq 7 ]]; then
exit 1
fi
done
-
+
+elif [[ "${CHAPTER}" -eq 8 ]]; then
+
+ # Chapter 8
+ printf "%b" "\n${IWHT}============ ${IGRN}Building ${IYLW}Chapter 8${IWHT} \
+============${RST}\n"
+
+ for package in man-pages iana-etc glibc zlib bzip2 xz zstd file readline m4 bc flex tcl expect dejagnu binutils gmp mpfr mpc isl attr acl libcap shadow gcc pkg-config ncurses sed psmisc gettext bison grep bash libtool gdbm gperf expat inetutils perl xml-parser intltool autoconf automake kmod libelf libffi openssl python ninja meson coreutils check diffutils gawk findutils groff grub less gzip iproute2 kbd libpipeline make patch man-db tar texinfo vim eudev procps-ng util-linux e2fsprogs sysklogd sysvinit; do
+ source packageinstall.sh 8 $package
+ retval=$?
+ if [[ "${retval}" -ne 0 ]]; then
+ exit 1
+ fi
+ done
+
else
- printf "%b" "Do Chapter 8, 9 and 10 stuff here.\n"
+ printf "%b" "Do Chapter 9 and 10 stuff here.\n"
fi