From 0fe3bb04a7aea4fa162af5840026c672393354f7 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 21 Jun 2023 14:35:58 +0800 Subject: [PATCH] Create man page symlinks for awk, cc, pkg-config, and lex --- chapter08/flex.xml | 6 ++++-- chapter08/gawk.xml | 6 ++++++ chapter08/gcc.xml | 12 +++++++----- chapter08/pkgconf.xml | 7 ++++--- 4 files changed, 21 insertions(+), 10 deletions(-) diff --git a/chapter08/flex.xml b/chapter08/flex.xml index d05474f03..478637adc 100644 --- a/chapter08/flex.xml +++ b/chapter08/flex.xml @@ -73,9 +73,11 @@ try to run its predecessor, lex. To support those programs, create a symbolic link named lex that runs flex in lex emulation - mode: + mode, and also create the man page of lex as a + symlink: -ln -sv flex /usr/bin/lex +ln -sv flex /usr/bin/lex +ln -sv flex.1 /usr/share/man/man1/lex.1 diff --git a/chapter08/gawk.xml b/chapter08/gawk.xml index 3e177948e..a6b74460b 100644 --- a/chapter08/gawk.xml +++ b/chapter08/gawk.xml @@ -61,6 +61,12 @@ su tester -c "PATH=$PATH make check" make LN='ln -f' install + The installation process already created awk + as a symlink to gawk, create its man page as a + symlink as well: + +ln -sv gawk.1 /usr/share/man/man1/awk.1 + The meaning of the overridden make variable: diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml index 482b588db..43f699689 100644 --- a/chapter08/gcc.xml +++ b/chapter08/gcc.xml @@ -215,12 +215,14 @@ su tester -c "PATH=$PATH make -k check" for "historical" reasons. ln -svr /usr/bin/cpp /usr/lib - + Many packages use the name cc to call the C + compiler. We've already created cc as a symlink in + , create its man page as a symlink + as well: + +ln -sv gcc.1 /usr/share/man/man1/cc.1 + Add a compatibility symlink to enable building programs with Link Time Optimization (LTO): diff --git a/chapter08/pkgconf.xml b/chapter08/pkgconf.xml index 73630f817..724a1ff24 100644 --- a/chapter08/pkgconf.xml +++ b/chapter08/pkgconf.xml @@ -57,10 +57,11 @@ make install - To maintain compatibility with the original Pkg-config create a - symlink: + To maintain compatibility with the original Pkg-config create two + symlinks: -ln -sfv pkgconf /usr/bin/pkg-config +ln -sv pkgconf /usr/bin/pkg-config +ln -sv pkgconf.1 /usr/share/man/man1/pkg-config.1