Преглед изворни кода

Added sed's for gawk install to change datadir and libexecdir definitions

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1715 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Gerard Beekmans пре 23 година
родитељ
комит
1858558e82
4 измењених фајлова са 25 додато и 5 уклоњено
  1. 5 0
      chapter01/changelog.xml
  2. 12 2
      chapter05/gawk-inst.xml
  3. 6 1
      chapter06/gawk-inst.xml
  4. 2 2
      index.xml

+ 5 - 0
chapter01/changelog.xml

@@ -33,6 +33,11 @@
 
 
 </para></listitem>
 </para></listitem>
 
 
+<listitem><para>March 16th, 2002 [gerard]: Chapter 05+06 - Gawk: Added
+commands to sed the <filename>awklib/Makefile.in</filename> file to change
+the <emphasis>datadir</emphasis> and <emphasis>libexecdir</emphasis>
+definitions</para></listitem>
+
 <listitem><para>March 15th, 2002 [gerard]: Chapter 01 - Mailing lists:
 <listitem><para>March 15th, 2002 [gerard]: Chapter 01 - Mailing lists:
 Added lfs-chat description</para></listitem>
 Added lfs-chat description</para></listitem>
 
 

+ 12 - 2
chapter05/gawk-inst.xml

@@ -7,7 +7,12 @@ following commands can be used in this case.  Note that these commands
 can also be used for other glibc versions so if you aren't sure, then
 can also be used for other glibc versions so if you aren't sure, then
 use the first version.</para>
 use the first version.</para>
 
 
-<para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 &amp;&amp;
+<para><screen><userinput>cd awklib &amp;&amp;
+cp Makefile.in Makefile.in.backup &amp;&amp;
+sed -e '/^datadir/s/awk/gawk/' \
+-e '/^libexecdir/s%/awk%%' Makefile.in.backup &gt; Makefile.in &amp;&amp;
+cd .. &amp;&amp;
+export CPPFLAGS=-Dre_max_failures=re_max_failures2 &amp;&amp;
 ./configure --prefix=$LFS/usr --disable-nls &amp;&amp;
 ./configure --prefix=$LFS/usr --disable-nls &amp;&amp;
 unset CPPFLAGS &amp;&amp;
 unset CPPFLAGS &amp;&amp;
 make LDFLAGS=-static &amp;&amp;
 make LDFLAGS=-static &amp;&amp;
@@ -16,7 +21,12 @@ make install</userinput></screen></para>
 <para>If you are using a newer glibc version (2.2.x), you can use the
 <para>If you are using a newer glibc version (2.2.x), you can use the
 following commands to install Gawk:</para>
 following commands to install Gawk:</para>
 
 
-<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &amp;&amp;
+<para><screen><userinput>cd awklib &amp;&amp;
+cp Makefile.in Makefile.in.backup &amp;&amp;
+sed -e '/^datadir/s/awk/gawk/' \
+-e '/^libexecdir/s%/awk%%' Makefile.in.backup &gt; Makefile.in &amp;&amp;
+cd .. &amp;&amp;
+./configure --prefix=$LFS/usr --disable-nls &amp;&amp;
 make LDFLAGS=-static &amp;&amp;
 make LDFLAGS=-static &amp;&amp;
 make install</userinput></screen></para>
 make install</userinput></screen></para>
 
 

+ 6 - 1
chapter06/gawk-inst.xml

@@ -3,7 +3,12 @@
 
 
 <para>Install Gawk by running the following commands:</para>
 <para>Install Gawk by running the following commands:</para>
 
 
-<para><screen><userinput>./configure --prefix=/usr &amp;&amp;
+<para><screen><userinput>cd awklib &amp;&amp;
+cp Makefile.in Makefile.in.backup &amp;&amp;
+sed -e '/^datadir/s/awk/gawk/' \
+-e '/^libexecdir/s%/awk%%' Makefile.in.backup &gt; Makefile.in &amp;&amp;
+cd .. &amp;&amp;
+./configure --prefix=/usr &amp;&amp;
 make &amp;&amp;
 make &amp;&amp;
 make install</userinput></screen></para>
 make install</userinput></screen></para>
 
 

+ 2 - 2
index.xml

@@ -4,8 +4,8 @@
 
 
 <!ENTITY book SYSTEM "book/book.xml">
 <!ENTITY book SYSTEM "book/book.xml">
 
 
-<!ENTITY version "20020315">
-<!ENTITY releasedate "March 15th, 2002">
+<!ENTITY version "20020316">
+<!ENTITY releasedate "March 16th, 2002">
 
 
 <!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
 <!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
 <!ENTITY http-root "http://ftp.linuxfromscratch.org">
 <!ENTITY http-root "http://ftp.linuxfromscratch.org">