diff options
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/man-exp.xml | 10 | ||||
-rw-r--r-- | chapter06/man-inst.xml | 7 |
2 files changed, 8 insertions, 9 deletions
diff --git a/chapter06/man-exp.xml b/chapter06/man-exp.xml index fc09310b2..b5e88a17a 100644 --- a/chapter06/man-exp.xml +++ b/chapter06/man-exp.xml @@ -8,10 +8,12 @@ where a program is found. By appending /usr/bin:/bin to PATH for the ./configure command, we make sure that man doesn't use the /static versions of our programs.</para> -<para><userinput>sed '/^PAGER/s/-is/-isR/'</userinput>: -The version of groff we installed supports SGR (Set Graphics Rendition) -escape sequences. In order for our man pages to display properly, we -add the R argument to the call for the less pager.</para> +<para><userinput>patch -Np1 -i ../man-&man-patch-version;.patch:</userinput> +This patch comments out one of the files in the <filename>man.conf</filename> +file (MANPATH /usr/man) because it will create redundant results when using +programs like <userinput>whatis</userinput>. It also adds the +<emphasis>-R</emphasis> option to the <emphasis>PAGER</emphasis> variable so +man pages are displayed properly.</para> </sect2> diff --git a/chapter06/man-inst.xml b/chapter06/man-inst.xml index 350228636..ad73cabdb 100644 --- a/chapter06/man-inst.xml +++ b/chapter06/man-inst.xml @@ -3,13 +3,10 @@ <para>Run the following commands to install man:</para> -<para><screen><userinput>PATH=$PATH:/usr/bin:/bin \ +<para><screen><userinput>patch -Np1 -i ../man-&man-patch-version;.patch && +PATH=$PATH:/usr/bin:/bin \ ./configure -default -confdir=/etc && make && -cp src/man.conf{,.backup} && -sed -e '/^PAGER/s/-is/-isR/' \ - -e 's%MANPATH[[:space:]]/usr/man%#MANPATH /usr/man%' \ - src/man.conf.backup > src/man.conf && make install</userinput></screen></para> <para>Note: If you wish to disable SGR escape sequences, you should |