From 0389538132fee341f978a21150daa420f6bafb8b Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 17 May 2021 23:09:39 +0800 Subject: bzip2: replace copies of bzip2 executable with symlinks --- chapter08/bzip2.xml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'chapter08') diff --git a/chapter08/bzip2.xml b/chapter08/bzip2.xml index 5d1e53469..68f567fcd 100644 --- a/chapter08/bzip2.xml +++ b/chapter08/bzip2.xml @@ -89,9 +89,13 @@ make clean ln -sv libbz2.so.&bzip2-version; /usr/lib/libbz2.so Install the shared bzip2 binary into the - /usr/bin directory: + /usr/bin directory, and replace + two copies of bzip2 with symlinks: -cp -v bzip2-shared /usr/bin/bzip2 +cp -v bzip2-shared /usr/bin/bzip2 +for i in /usr/bin/{bzcat,bunzip2}; do + ln -sfv bzip2 $i +done Remove an useless static library: -- cgit v1.2.3-54-g00ecf