Pārlūkot izejas kodu

converted gzip, make and patch

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2319 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Gerard Beekmans 22 gadi atpakaļ
vecāks
revīzija
63eb55cb8f

+ 2 - 0
appendixa/gzip-dep.xml

@@ -1,3 +1,5 @@
+<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
+
 <sect2>
 <title>Gzip Installation Dependencies</title>
 

+ 4 - 7
appendixa/gzip-desc.xml

@@ -1,13 +1,10 @@
-<sect2><title>Contents of Gzip</title>
+<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
 
-<para>Last checked against version &gzip-contversion;.</para>
+<sect2><title>Descriptions</title>
 
-<sect3><title>Program Files</title>
-<para>gunzip (link to gzip), gzexe, gzip,
-uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff, zforce,
-zgrep, zmore and znew</para></sect3>
+<para>Last checked against version &gzip-contversion;.</para>
 
-<sect3><title>Description</title>
+<sect3><title>Program file descriptions</title>
 
 <sect4><title>gunzip, uncompress</title>
 <para>gunzip and uncompress decompress files which are compressed with 

+ 15 - 0
appendixa/gzip-shortdesc.xml

@@ -0,0 +1,15 @@
+<sect2><title>Contents of Gzip</title>
+
+<para>Last checked against version &gzip-contversion;.</para>
+
+<para>The gzip package contains program to compress and decompress files
+using the Lempel-Ziv coding (LZ77).</para>
+
+<para>Gzip installs the following:</para>
+
+<sect3><title>Program Files</title>
+<para>gunzip (link to gzip), gzexe, gzip,
+uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff, zforce,
+zgrep, zmore and znew</para></sect3>
+
+</sect2>

+ 2 - 0
appendixa/make-dep.xml

@@ -1,3 +1,5 @@
+<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
+
 <sect2>
 <title>Make Installation Dependencies</title>
 

+ 6 - 7
appendixa/make-desc.xml

@@ -1,15 +1,14 @@
-<sect2><title>Contents of Make</title>
+<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
 
-<para>Last checked against version &make-contversion;.</para>
+<sect2><title>Descriptions</title>
 
-<sect3><title>Program files</title>
-<para>make</para></sect3>
+<para>Last checked against version &make-contversion;.</para>
 
-<sect3><title>Descriptions</title>
+<sect3><title>Program file descriptions</title>
 
 <sect4><title>make</title>
-<para>make determines, automatically, which pieces of a large program need to be 
-recompiled and issues the commands to recompile them.</para></sect4>
+<para>make determines, automatically, which pieces of a large program need
+to be recompiled and issues the commands to recompile them.</para></sect4>
 
 </sect3>
 

+ 14 - 0
appendixa/make-shortdesc.xml

@@ -0,0 +1,14 @@
+<sect2><title>Contents of Make</title>
+
+<para>Last checked against version &make-contversion;.</para>
+
+<para>Make determines, automatically, which pieces of a large program need
+to be recompiled and issues the commands to recompile them.</para>
+
+<para>Make installs the following:</para>
+
+<sect3><title>Program files</title>
+<para>make</para></sect3>
+
+</sect2>
+

+ 2 - 0
appendixa/patch-dep.xml

@@ -1,3 +1,5 @@
+<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
+
 <sect2>
 <title>Patch Installation Dependencies</title>
 

+ 4 - 5
appendixa/patch-desc.xml

@@ -1,11 +1,10 @@
-<sect2><title>Contents of Patch</title>
+<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
 
-<para>Last checked against version &patch-contversion;.</para>
+<sect2><title>Descriptions</title>
 
-<sect3><title>Program Files</title>
-<para>patch</para></sect3>
+<para>Last checked against version &patch-contversion;.</para>
 
-<sect3><title>Descriptions</title>
+<sect3><title>Program files descriptions</title>
 
 <sect4><title>patch</title>
 <para>The patch program modifies a file according to a patch file. A patch

+ 15 - 0
appendixa/patch-shortdesc.xml

@@ -0,0 +1,15 @@
+<sect2><title>Contents of Patch</title>
+
+<para>Last checked against version &patch-contversion;.</para>
+
+<para>The patch program modifies a file according to a patch file. A patch
+file usually is a list, created by the diff program, that contains
+instructions on how an original file needs to be modified.</para>
+
+<para>Make installs the following:</para>
+
+<sect3><title>Program Files</title>
+<para>patch</para></sect3>
+
+</sect2>
+

+ 12 - 4
chapter05/gzip-inst.xml

@@ -1,11 +1,19 @@
+<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
+
 <sect2>
 <title>Installation of Gzip</title>
 
-<para>Install Gzip by running the following commands:</para>
+<para>Prepare Gzip to be compiled:</para>
+
+<para><screen><userinput>./configure --prefix=$LFS/static</userinput></screen></para>
+
+<para>Continue with compiling the package:</para>
+
+<para><screen><userinput>make LDFLAGS="-static"</userinput></screen></para>
+
+<para>And finish off installing the package:</para>
 
-<para><screen><userinput>./configure --prefix=$LFS/static &amp;&amp;
-make LDFLAGS="-static" &amp;&amp;
-make install</userinput></screen></para>
+<para><screen><userinput>make install</userinput></screen></para>
 
 </sect2>
 

+ 2 - 2
chapter05/gzip.xml

@@ -5,9 +5,9 @@
 <screen>Estimated build time:           &gzip-time-static;
 Estimated required disk space:  &gzip-compsize-static;</screen>
 
-&c5-gzip-inst;
-&aa-gzip-desc;
+&aa-gzip-shortdesc;
 &aa-gzip-dep;
+&c5-gzip-inst;
 
 </sect1>
 

+ 16 - 8
chapter05/make-inst.xml

@@ -1,11 +1,19 @@
+<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
+
 <sect2>
 <title>Installation of Make</title>
 
-<para>Install Make by running the following commands:</para>
+<para>Prepare Make to be compiled:</para>
+
+<para><screen><userinput>LDFLAGS="-static" ./configure --prefix=$LFS/static --disable-nls</userinput></screen></para>
+
+<para>Continue with compiling the package:</para>
+
+<para><screen><userinput>make</userinput></screen></para>
+
+<para>And finish off installing the package:</para>
 
-<para><screen><userinput>LDFLAGS="-static" ./configure --prefix=$LFS/static --disable-nls &amp;&amp;
-make &amp;&amp;
-make install</userinput></screen></para>
+<para><screen><userinput>make install</userinput></screen></para>
 
 <para>During the make install phase you will see this warning:</para>
 
@@ -14,10 +22,10 @@ make install</userinput></screen></para>
 otherwise the `-l' option will probably not work. You may need special
 privileges to complete the installation of /mnt/lfs/static/bin/make.</screen></blockquote>
 
-<para>You can safely ignore this warning. The make program doesn't actually need to be owned by
-group kmem and setgid for the <emphasis>-l</emphasis> option to work. (This option
-tells make not to start any new jobs when a certain load on
-the system has been reached.)</para>
+<para>You can safely ignore this warning. The make program doesn't actually
+need to be owned by group kmem and setgid for the <emphasis>-l</emphasis>
+option to work. (This option tells make not to start any new jobs when a
+certain load on the system has been reached.)</para>
 
 </sect2>
 

+ 2 - 2
chapter05/make.xml

@@ -5,9 +5,9 @@
 <screen>Estimated build time:           &make-time-static;
 Estimated required disk space:  &make-compsize-static;</screen>
 
-&c5-make-inst;
-&aa-make-desc;
+&aa-make-shortdesc;
 &aa-make-dep;
+&c5-make-inst;
 
 </sect1>
 

+ 0 - 10
chapter05/patch-exp.xml

@@ -1,10 +0,0 @@
-<sect2>
-<title>Command explanations</title>
-
-<para><userinput>CPPFLAGS=-D_GNU_SOURCE: </userinput>
-This flag fixes installation problems of this package on PPC and m68k
-platforms (that we know of). It doesn't hurt compilation on other
-platforms, such as x86, so we do it by default.</para>
-
-</sect2>
-

+ 21 - 4
chapter05/patch-inst.xml

@@ -1,12 +1,29 @@
+<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
+
 <sect2>
 <title>Installation of Patch</title>
 
-<para>Install Patch by running the following commands:</para>
+<para>Prepare Patch to be compiled:</para>
 
 <para><screen><userinput>CPPFLAGS=-D_GNU_SOURCE \
-&nbsp;&nbsp;&nbsp;&nbsp;LDFLAGS="-static" ./configure --prefix=$LFS/static &amp;&amp;
-make &amp;&amp;
-make install</userinput></screen></para>
+&nbsp;&nbsp;&nbsp;&nbsp;LDFLAGS="-static" ./configure --prefix=$LFS/static</userinput></screen></para>
+
+<para>The meaning of the configure option is:</para>
+
+<itemizedlist>
+<listitem><para><userinput>CPPFLAGS=-D_GNU_SOURCE:</userinput> This flag
+fixes installation problems of this package on PPC and m68k platforms (that
+we know of). It doesn't hurt compilation on other platforms, such as x86,
+so we do it by default.</para></listitem>
+</itemizedlist>
+
+<para>Continue with compiling the package:</para>
+
+<para><screen><userinput>make</userinput></screen></para>
+
+<para>And finish off installing the package:</para>
+
+<para><screen><userinput>make install</userinput></screen></para>
 
 </sect2>
 

+ 2 - 3
chapter05/patch.xml

@@ -5,10 +5,9 @@
 <screen>Estimated build time:           &patch-time-static;
 Estimated required disk space:  &patch-compsize-static;</screen>
 
-&c5-patch-inst;
-&c5-patch-exp;
-&aa-patch-desc;
+&aa-patch-shortdesc;
 &aa-patch-dep;
+&c5-patch-inst;
 
 </sect1>
 

+ 1 - 0
entities/gzip.ent

@@ -9,6 +9,7 @@
 <!ENTITY c6-gzip-exp SYSTEM "../chapter06/gzip-exp.xml">
 
 <!ENTITY aa-gzip SYSTEM "../appendixa/gzip.xml">
+<!ENTITY aa-gzip-shortdesc SYSTEM "../appendixa/gzip-shortdesc.xml">
 <!ENTITY aa-gzip-desc SYSTEM "../appendixa/gzip-desc.xml">
 <!ENTITY aa-gzip-dep SYSTEM "../appendixa/gzip-dep.xml">
 <!ENTITY aa-gzip-down SYSTEM "../appendixa/gzip-down.xml">

+ 1 - 0
entities/make.ent

@@ -8,6 +8,7 @@
 <!ENTITY c6-make-exp SYSTEM "../chapter06/make-exp.xml">
 
 <!ENTITY aa-make SYSTEM "../appendixa/make.xml">
+<!ENTITY aa-make-shortdesc SYSTEM "../appendixa/make-shortdesc.xml">
 <!ENTITY aa-make-desc SYSTEM "../appendixa/make-desc.xml">
 <!ENTITY aa-make-dep SYSTEM "../appendixa/make-dep.xml">
 <!ENTITY aa-make-down SYSTEM "../appendixa/make-down.xml">

+ 1 - 1
entities/patch.ent

@@ -2,12 +2,12 @@
 
 <!ENTITY c5-patch SYSTEM "../chapter05/patch.xml">
 <!ENTITY c5-patch-inst SYSTEM "../chapter05/patch-inst.xml">
-<!ENTITY c5-patch-exp SYSTEM "../chapter05/patch-exp.xml">
 
 <!ENTITY c6-patch SYSTEM "../chapter06/patch.xml">
 <!ENTITY c6-patch-inst SYSTEM "../chapter06/patch-inst.xml">
 
 <!ENTITY aa-patch SYSTEM "../appendixa/patch.xml">
+<!ENTITY aa-patch-shortdesc SYSTEM "../appendixa/patch-shortdesc.xml">
 <!ENTITY aa-patch-desc SYSTEM "../appendixa/patch-desc.xml">
 <!ENTITY aa-patch-dep SYSTEM "../appendixa/patch-dep.xml">
 <!ENTITY aa-patch-down SYSTEM "../appendixa/patch-down.xml">