浏览代码

Applied Zack's Creating Files patch

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2623 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Gerard Beekmans 22 年之前
父节点
当前提交
9503a7da97
共有 2 个文件被更改,包括 10 次插入21 次删除
  1. 4 0
      chapter01/changelog.xml
  2. 6 21
      chapter06/createfiles.xml

+ 4 - 0
chapter01/changelog.xml

@@ -78,6 +78,10 @@
 </itemizedlist>
 </para></listitem>
 
+<listitem><para>May 15th, 2003 [winkie]: Chapter 06 - Creating Files: All
+those <userinput>ln</userinput> commands can be made into a few long ln
+commands.</para></listitem>
+
 <listitem><para>May 15th, 2003 [winkie]: Chapter 05 - Installing
 Glibc: Create an ld.so.conf file before building Glibc, to prevent an
 (harmless) error.</para></listitem>

+ 6 - 21
chapter06/createfiles.xml

@@ -7,27 +7,12 @@ order to satisfy these programs, we create a number of symbolic links which
 will be replaced by real files throughout the course of this chapter when
 we're installing all the software.</para>
 
-<para><screen><userinput>ln -sf /stage1/bin/bash /bin
-ln -sf bash /bin/sh
-ln -sf /stage1/bin/pwd /bin
-ln -sf /stage1/bin/perl /usr/bin
-ln -sf /stage1/bin/cat /bin
-ln -sf /stage1/bin/stty /bin
-ln -sf /stage1/bin/msgfmt /usr/bin
-ln -sf /stage1/bin/xgettext /usr/bin
-ln -sf /stage1/bin/msgmerge /usr/bin
-ln -sf /stage1/bin/install /usr/bin
-ln -sf /usr/bin/install /bin
-ln -sf /stage1/bin/echo /bin
-ln -sf /stage1/bin/sed /bin
-ln -sf /stage1/bin/awk /bin
-ln -sf /stage1/bin/rm /bin
-ln -sf /stage1/bin/mv /bin
-ln -sf /stage1/bin/chmod /bin
-ln -sf /stage1/bin/chgrp /bin
-ln -sf /stage1/bin/sort /usr/bin
-ln -sf /stage1/bin/cmp /usr/bin</userinput></screen></para>
-
+<para><screen><userinput>ln -s /stage1/bin/{bash,pwd,cat,stty,echo,sed} /bin
+ln -s /stage1/bin/{rm,mv,chmod,chgrp} /bin
+ln -s /stage1/bin/{perl,msgfmt,xgettext,msgmerge,install} /usr/bin
+ln -s /stage1/bin/{sort,gawk,cmp} /usr/bin
+ln -s bash /bin/sh
+ln -s ../usr/bin/install /bin</userinput></screen></para>
 
 </sect1>