diff options
Diffstat (limited to 'chapter06/man.xml')
-rw-r--r-- | chapter06/man.xml | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/chapter06/man.xml b/chapter06/man.xml index 833ff0e8e..96fd3c77e 100644 --- a/chapter06/man.xml +++ b/chapter06/man.xml @@ -14,25 +14,25 @@ Estimated required disk space: &man-compsize;</screen> <title>Installation of Man</title> <para>We'll make three adjustments to the sources of Man.</para> - -<para>The first patch comments out the "MANPATH /usr/man" line in the -<filename>man.conf</filename> file to prevent redundant results when using - programs such as <userinput>whatis</userinput>:</para> -<screen><userinput>patch -Np1 -i ../&man-manpath-patch;</userinput></screen> +<para>The first is a patch which allows Man to work better with recent releases +of Groff. In particular, man pages will now display using the full terminal +width instead of being limited to 80 characters:</para> -<para>The second patch adds the <emphasis>-R</emphasis> option to the -<emphasis>PAGER</emphasis> variable so that escape sequences are -handled properly:</para> +<screen><userinput>patch -Np1 -i ../&man-80cols-patch;</userinput></screen> -<screen><userinput>patch -Np1 -i ../&man-pager-patch;</userinput></screen> +<para>The second is a sed substitution to add the <emphasis>-R</emphasis> +switch to the <emphasis>PAGER</emphasis> variable so that escape sequences are +properly handled by Less:</para> -<para>The third and last patch prevents a problem when man pages not formatted -with more than 80 columns are used in conjunction with recent releases of -<userinput>groff</userinput>:</para> +<screen><userinput>sed -i 's/-is/&R/' configure</userinput></screen> -<screen><userinput>patch -Np1 -i ../&man-80cols-patch;</userinput></screen> +<para>The third is also a sed substitution to comment out the "MANPATH +/usr/man" line in the <filename>man.conf</filename> file to prevent redundant +results when using programs such as <userinput>whatis</userinput>:</para> +<screen><userinput>sed -i 's%MANPATH./usr/man%#&%' src/man.conf.in</userinput></screen> + <para>Now prepare Man for compilation:</para> <screen><userinput>./configure -default -confdir=/etc</userinput></screen> |