diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-04-06 14:09:59 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-04-06 14:09:59 -0500 |
commit | af28b78b8e659f995b39a5dde2ce2cef0da9fbe0 (patch) | |
tree | a80d4cfef7713f7aa26137c0da553358af4cd7b2 /chapter8/bzip2.sh | |
parent | 783a4c48e04e81783848f0cb0f757f6a836d7f6e (diff) |
Add chapter8 script commands.
Diffstat (limited to 'chapter8/bzip2.sh')
-rw-r--r-- | chapter8/bzip2.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/chapter8/bzip2.sh b/chapter8/bzip2.sh index 7a693aa..b1b4459 100644 --- a/chapter8/bzip2.sh +++ b/chapter8/bzip2.sh @@ -1,3 +1,21 @@ #!/bin/bash +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 |