Jelajahi Sumber

Use man patch instead of the sed hacks

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@557 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Gerard Beekmans 24 tahun lalu
induk
melakukan
820e2ee7e0
1 mengubah file dengan 3 tambahan dan 14 penghapusan
  1. 3 14
      chapter06/man-inst.xml

+ 3 - 14
chapter06/man-inst.xml

@@ -2,26 +2,15 @@
 <title>Installation of Man</title>
 
 <para>
-Install Man by running the following commands:
+Before Man is installed, the man patch file needs to be unpacked.
 </para>
 
 <blockquote><literallayout>
-	<userinput>sed -e 's|in \(.*\$PATH\)|in `echo \1`|'
-		\</userinput>
-	<userinput>&nbsp;&nbsp;&nbsp;configure &gt; tmp~
+	<userinput>patch -Np1 -i ../man-&man-version;.patch
 		&amp;&amp;</userinput>
-	<userinput>mv tmp~ configure &amp;&amp;</userinput>
-	<userinput>chmod 755 configure &amp;&amp;</userinput>
 	<userinput>./configure -default &amp;&amp;</userinput>
 	<userinput>make &amp;&amp;</userinput>
-	<userinput>make install &amp;&amp;</userinput>
-	<userinput>sed s/AWK=/"AWK=\/usr\/bin\/mawk"/
-		\</userinput>
-	<userinput>&nbsp;&nbsp;&nbsp;/usr/sbin/makewhatis 
-		&gt; makewhatis-new &amp;&amp;</userinput>
-	<userinput>mv makewhatis-new /usr/sbin/makewhatis &amp;&amp;
-		</userinput>
-	<userinput>chmod 755 /usr/sbin/makewhatis</userinput>
+	<userinput>make install</userinput>
 </literallayout></blockquote>
 
 <para>