diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-04-12 12:49:29 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-04-12 12:49:29 -0500 |
commit | 99659c30e5369c3f02e286a4a6ec6fecd77f0416 (patch) | |
tree | 12110b15571365acae602ebd9c1348463a0d4710 /chapter8/bzip2.sh | |
parent | 0e5288f8f3bee7276d561cde029ed492e2ea85e6 (diff) | |
parent | 13c6afd35cab1e3f4d96857d549e02cfd1e23acd (diff) |
Merge branch 'chapter8'
Diffstat (limited to 'chapter8/bzip2.sh')
-rw-r--r-- | chapter8/bzip2.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chapter8/bzip2.sh b/chapter8/bzip2.sh new file mode 100644 index 0000000..81b111e --- /dev/null +++ b/chapter8/bzip2.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +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 + +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 |