aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/man.xml
diff options
context:
space:
mode:
authorGreg Schafer <greg@linuxfromscratch.org>2003-11-21 03:39:20 +0000
committerGreg Schafer <greg@linuxfromscratch.org>2003-11-21 03:39:20 +0000
commit37dcf2af375d91d1095e54403db6b77ea523ba4e (patch)
treeaf13339eed5155fd2f8903928c39aee8bbe3a3e2 /chapter06/man.xml
parentbcd0ce7faafae9e2e127beab3374fb1cf2e448e0 (diff)
Rolled back 4 patches to seds: GCC Suppress-Libiberty, Grub Gcc33, Man Manpath, Man Pager. Closes Bug 461.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3117 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/man.xml')
-rw-r--r--chapter06/man.xml26
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/&amp;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>