aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/bzip2.sh
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-19 22:51:55 +0000
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-19 22:51:55 +0000
commit2e2f8f359c865382cbc138e4572ab9a63d736775 (patch)
treef76a820e8f39d46926ad0e6a5dc8f478ae429615 /chapter8/bzip2.sh
parente4633200ea4609597950f991ce43f1a4d9f3cfbb (diff)
parent6b11f48c20f4411008c28ccb86463a98c0f06fef (diff)
Merge branch 'chapter10'
Diffstat (limited to 'chapter8/bzip2.sh')
-rw-r--r--chapter8/bzip2.sh30
1 files changed, 14 insertions, 16 deletions
diff --git a/chapter8/bzip2.sh b/chapter8/bzip2.sh
index 667bd5f..c45bea4 100644
--- a/chapter8/bzip2.sh
+++ b/chapter8/bzip2.sh
@@ -1,23 +1,21 @@
#!/bin/bash
-set -e
-
-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
-make -f Makefile-libbz2_so
-make clean
-make
+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 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