Browse Source

Changed procinfo's installation -- removed the sed, replaced with an
option to make ('make LDLIBS=-lncurses')


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1177 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Gerard Beekmans 24 years ago
parent
commit
9f1dfbe42a
3 changed files with 7 additions and 7 deletions
  1. 3 0
      chapter01/changelog.xml
  2. 3 6
      chapter06/procinfo-exp.xml
  3. 1 1
      chapter06/procinfo-inst.xml

+ 3 - 0
chapter01/changelog.xml

@@ -5,6 +5,9 @@
 
 <itemizedlist>
 
+<listitem><para>September 2nd, 2001 [markh]: Chapter 6 - Procinfo:
+Removed sed and replaced with a flag to make.</para></listitem>
+
 <listitem><para>September 5th, 2001 [markh]: Chapter 6 - E2fsprogs:
 Added explanation as to why we use --with-root-prefix=/</para></listitem>
 

+ 3 - 6
chapter06/procinfo-exp.xml

@@ -1,12 +1,9 @@
 <sect2>
 <title>Command explanations</title>
 
-<para><userinput>sed 's/-ltermcap/-lncurses/' Makefile | make -f -:</userinput> 
-This will replace -ltermcap with -lncurses in the Makefile and pipe the
-output of sed (the modified Makefile) directly to the make program. This
-is an alternate and more efficient way to direct the output to a file
-and tell make to use that alternate file. We do this because libtermcap
-is declared obsolete in favor of libncurses.</para>
+<para><userinput>make LDLIBS=-lncurses :</userinput> This will use
+-lncurses instead of -ltermcap when building procinfo. This is done 
+because libtermcap is declared obsolete in favor of libncurses.</para>
 
 </sect2>
 

+ 1 - 1
chapter06/procinfo-inst.xml

@@ -3,7 +3,7 @@
 
 <para>Install Procinfo by running the following commands:</para>
 
-<para><screen><userinput>sed 's/-ltermcap/-lncurses/' Makefile | make -f - &amp;&amp;</userinput>
+<para><screen><userinput>make LDLIBS=-lncurses &amp;&amp;</userinput>
 <userinput>make install</userinput></screen></para>
 
 </sect2>