aboutsummaryrefslogtreecommitdiffstats
path: root/chapter08
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@mengyan1223.wang>2021-05-17 23:09:39 +0800
committerXi Ruoyao <xry111@mengyan1223.wang>2021-05-17 23:09:39 +0800
commit0389538132fee341f978a21150daa420f6bafb8b (patch)
tree08d64fbf0445090304624fd8749cafc9045c40e9 /chapter08
parent7fbfed56688ea26852ae1562619b08612cc1ca21 (diff)
bzip2: replace copies of bzip2 executable with symlinks
Diffstat (limited to 'chapter08')
-rw-r--r--chapter08/bzip2.xml8
1 files changed, 6 insertions, 2 deletions
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</userinput></screen>
ln -sv libbz2.so.&bzip2-version; /usr/lib/libbz2.so</userinput></screen>
<para>Install the shared <command>bzip2</command> binary into the
- <filename class="directory">/usr/bin</filename> directory:</para>
+ <filename class="directory">/usr/bin</filename> directory, and replace
+ two copies of <command>bzip2</command> with symlinks:</para>
-<screen><userinput remap="install">cp -v bzip2-shared /usr/bin/bzip2</userinput></screen>
+<screen><userinput remap="install">cp -v bzip2-shared /usr/bin/bzip2
+for i in /usr/bin/{bzcat,bunzip2}; do
+ ln -sfv bzip2 $i
+done</userinput></screen>
<para>Remove an useless static library:</para>