1
0
Эх сурвалжийг харах

Typo and language fix in chapter 5 & 6

Xi Ruoyao 7 жил өмнө
parent
commit
29e322bd72

+ 4 - 4
chapter05/binutils-pass1.xml

@@ -56,7 +56,7 @@
     enable.</para-->
     <para>首先构建 Binutils 相当重要,
 		因为 Glibc 和 GCC 都会对可用的链接器和汇编器进行测试,
-		以决定启用它们的哪些自身特性。</para>
+		以决定可以启用它们自带的哪些特性。</para>
 
     <!--para>The Binutils documentation recommends building Binutils 
     in a dedicated build directory:</para-->
@@ -156,9 +156,9 @@ cd       build</userinput></screen>
     Expect, and DejaGNU) is not yet in place. The benefits of running the
     tests at this point are minimal since the programs from this
     first pass will soon be replaced by those from the second.</para-->
-    <para>之后编译就完成了。一般来说我们现在应该执行测试套件,
-		但在这么早的构建阶段,测试套件框架 (Tcl、Expect 和 DejaGNU)
-		都不可用。另外,由于这些第一轮的程序很快会被第二轮的程序替代,
+    <para>现在编译已经完成,一般来说我们应该执行测试套件,
+		但在当前的早期构建阶段,测试套件框架 (Tcl、Expect 和 DejaGNU)
+		尚不可用。另外,由于第一遍构建的程序很快会被第二遍构建的程序替代,
 		运行测试的收益极小。</para>
 
     <para>如果在 x86_64 上编译,创建一个符号链接以保证工具链的完整性:

+ 3 - 3
chapter05/gcc-pass1.xml

@@ -219,11 +219,11 @@ cd       build</userinput></screen>
           for locally installed include files. The default is <filename>/usr/local</filename>.
           Setting this to <filename>/tools</filename> helps keep the host location of
           <filename>/usr/local</filename> out of this GCC's search path.</para-->
-          <para>本地前缀是 GCC 在系统中寻找本地包含文件的位置,
+          <para>本地前缀是 GCC 在系统中寻找本地安装的包含文件的位置,
 			  它的默认值是
 			  <filename class="directory">/usr/local</filename> 。
 			  将它设置为 <filename class="directory">/tools</filename>,
-			  从而将宿主位置
+			  从而将宿主系统的
 			  <filename class="directory">/usr/local</filename>
 			  排除在 GCC 搜索路径外。</para>
         </listitem>
@@ -314,7 +314,7 @@ cd       build</userinput></screen>
     are minimal since the programs from this first pass will soon be
     replaced.</para-->
     <para>现在我们编译完成了 GCC。此时,通常来说应该执行测试套件。
-		然而正如之前所说,测试套件框架还没有就位,
+		然而正如前文所述,测试套件框架还没有就位,
 		而且第一遍编译的 GCC 程序很快就会被替换,运行测试套件的收益极小。
 	</para>
 

+ 1 - 1
chapter05/generalinstructions.xml

@@ -12,7 +12,7 @@
 
   <!--para>When building packages there are several assumptions made within
   the instructions:</para-->
-  <para>在构建软件包时,本书的指示服从下列假设:</para>
+  <para>在构建软件包时,本书提供的命令基于下列假设:</para>
 
   <itemizedlist>
 

+ 1 - 1
chapter06/bash.xml

@@ -137,7 +137,7 @@ mv -vf /usr/bin/bash /bin</userinput></screen>
       <varlistentry id="bashbug">
         <term><command>bashbug</command></term>
         <listitem>
-          <para>一个 shell 脚,用于帮助用户按照电子邮件标准格式编写关于
+          <para>一个 shell 脚,用于帮助用户按照电子邮件标准格式编写关于
           	  <command>bash</command> 的 bug 报告</para>
           <indexterm zone="ch-system-bash bashbug">
             <primary sortas="b-bashbug">bashbug</primary>

+ 1 - 1
chapter06/gdbm.xml

@@ -28,7 +28,7 @@
     standard UNIX dbm.  The library provides primitives for storing key/data
     pairs, searching and retrieving the data by its key and deleting a key
     along with its data. </para-->
-    <para>GDBM 软件包包含 GNU 数据库管理
+    <para>GDBM 软件包包含 GNU 数据库管理
 		它是一个使用可扩展散列的数据库函数库,工作方法和标准 UNIX dbm 类似。
 		该库提供用于存储键值对、通过键搜索和获取数据,
 		以及删除键和对应数据的原语。</para>

+ 1 - 1
chapter06/ninja.xml

@@ -47,7 +47,7 @@
     will limit the number of parallel processes, but some packages
     embed the execution of ninja and do not pass a -j parameter.</para-->
     <para>在运行时, ninja 一般尽量并行运行更多进程,
-		默认情况下最大进程数是系统 CPI 核心数加 2 得到的值。
+		默认情况下最大进程数是系统 CPU 核心数加 2 得到的值。
 		某些情况下,这样会导致 CPU 过热,或者耗尽系统内存。
 		如果使用命令行执行 ninja,可以传递 -jN 参数以限制并行进程数,
 		但某些软件包内嵌了 ninja 的执行过程,且并不传递 -j 参数。</para>

+ 1 - 1
chapter06/openssl.xml

@@ -63,7 +63,7 @@
 <screen><userinput remap="test">make test</userinput></screen>
 
     <para>测试 40-test_rehash.t 的一个子测试在 LFS chroot 环境中失败,
-    但如果用普通用户运行就能通过。</para>
+    但如果以普通用户身份运行就能通过。</para>
 
     <para>安装该软件包:</para>