aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/bzip2.sh
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-14 16:37:15 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-14 16:37:15 -0500
commitd6de6e3bc5bc4d5f3c8799df33d876116bddef14 (patch)
tree3ada7dd247cdc9fa1f6085d06a36e1b542f4e0b8 /chapter8/bzip2.sh
parente5cb063449df5491af4861744b80c6ea40e7cac3 (diff)
Use AND lists and remove set -e
Diffstat (limited to 'chapter8/bzip2.sh')
-rw-r--r--chapter8/bzip2.sh29
1 files changed, 14 insertions, 15 deletions
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