Browse Source

Removed all -f flags from cp commands

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1092 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Gerard Beekmans 24 years ago
parent
commit
3acb38f277

+ 1 - 1
chapter05/fileutils-exp.xml

@@ -5,7 +5,7 @@
 run this command in order to keep a backup of the file we are about to
 run this command in order to keep a backup of the file we are about to
 change.</para>
 change.</para>
 
 
-<para><screen><userinput>cp -f lib/Makefile.in lib/Makefile.in.backup &amp;&amp;</userinput>
+<para><screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup &amp;&amp;</userinput>
 <userinput>sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
 <userinput>sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
 <userinput>&nbsp;&nbsp;&nbsp;-e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
 <userinput>&nbsp;&nbsp;&nbsp;-e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
 <userinput>&nbsp;&nbsp;&nbsp;lib/Makefile.in &gt; lib/Makefile.in~ &amp;&amp;</userinput>
 <userinput>&nbsp;&nbsp;&nbsp;lib/Makefile.in &gt; lib/Makefile.in~ &amp;&amp;</userinput>

+ 1 - 1
chapter05/fileutils-inst.xml

@@ -7,7 +7,7 @@ limited to, Linux systems that run Glibc-2.2.3 with an AMD CPU (Athlons
 and Durons are the most reported used CPU's). If you are in this category, 
 and Durons are the most reported used CPU's). If you are in this category, 
 run the following to sed commands before you compile this package.
 run the following to sed commands before you compile this package.
 
 
-<screen><userinput>cp -f lib/Makefile.in lib/Makefile.in.backup &amp;&amp;</userinput>
+<screen><userinput>cp lib/Makefile.in lib/Makefile.in.backup &amp;&amp;</userinput>
 <userinput>sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
 <userinput>sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
 <userinput>&nbsp;&nbsp;&nbsp;-e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
 <userinput>&nbsp;&nbsp;&nbsp;-e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
 <userinput>&nbsp;&nbsp;&nbsp;lib/Makefile.in &gt; lib/Makefile.in~ &amp;&amp;</userinput>
 <userinput>&nbsp;&nbsp;&nbsp;lib/Makefile.in &gt; lib/Makefile.in~ &amp;&amp;</userinput>

+ 1 - 1
chapter05/gzip-inst.xml

@@ -8,7 +8,7 @@ unpacked.</para>
 <userinput>./configure --prefix=$LFS/usr &amp;&amp;</userinput>
 <userinput>./configure --prefix=$LFS/usr &amp;&amp;</userinput>
 <userinput>make LDFLAGS=-static &amp;&amp;</userinput>
 <userinput>make LDFLAGS=-static &amp;&amp;</userinput>
 <userinput>make install &amp;&amp;</userinput>
 <userinput>make install &amp;&amp;</userinput>
-<userinput>cp -f $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin &amp;&amp;</userinput>
+<userinput>cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin &amp;&amp;</userinput>
 <userinput>rm -f $LFS/usr/bin/gunzip $LFS/usr/bin/gzip</userinput></screen></para>
 <userinput>rm -f $LFS/usr/bin/gunzip $LFS/usr/bin/gzip</userinput></screen></para>
 
 
 </sect2>
 </sect2>

+ 7 - 7
chapter06/bzip2-inst.xml

@@ -5,13 +5,13 @@
 
 
 <para><screen><userinput>make -f Makefile-libbz2_so &amp;&amp;</userinput>
 <para><screen><userinput>make -f Makefile-libbz2_so &amp;&amp;</userinput>
 <userinput>make bzip2recover libbz2.a &amp;&amp;</userinput>
 <userinput>make bzip2recover libbz2.a &amp;&amp;</userinput>
-<userinput>cp -f bzip2-shared /bin/bzip2 &amp;&amp;</userinput>
-<userinput>cp -f bzip2recover /bin &amp;&amp;</userinput>
-<userinput>cp -f bzip2.1 /usr/share/man/man1 &amp;&amp;</userinput>
-<userinput>cp -f bzlib.h /usr/include &amp;&amp;</userinput>
-<userinput>cp -af libbz2.so* /lib &amp;&amp;</userinput>
-<userinput>rm -f /usr/lib/libbz2.a &amp;&amp;</userinput>
-<userinput>cp -f libbz2.a /usr/lib &amp;&amp;</userinput>
+<userinput>cp bzip2-shared /bin/bzip2 &amp;&amp;</userinput>
+<userinput>cp bzip2recover /bin &amp;&amp;</userinput>
+<userinput>cp bzip2.1 /usr/share/man/man1 &amp;&amp;</userinput>
+<userinput>cp bzlib.h /usr/include &amp;&amp;</userinput>
+<userinput>cp -a libbz2.so* /lib &amp;&amp;</userinput>
+<userinput>rm /usr/lib/libbz2.a &amp;&amp;</userinput>
+<userinput>cp libbz2.a /usr/lib &amp;&amp;</userinput>
 <userinput>cd /usr/lib &amp;&amp;</userinput>
 <userinput>cd /usr/lib &amp;&amp;</userinput>
 <userinput>ln -sf ../../lib/libbz2.so &amp;&amp;</userinput>
 <userinput>ln -sf ../../lib/libbz2.so &amp;&amp;</userinput>
 <userinput>cd /bin &amp;&amp;</userinput>
 <userinput>cd /bin &amp;&amp;</userinput>

+ 1 - 1
chapter06/file-inst.xml

@@ -6,7 +6,7 @@ break is placed exactly where it is in the book.  Don't try and put it
 all on one line otherwise it won't work.  Install File by running the 
 all on one line otherwise it won't work.  Install File by running the 
 following commands:</para>
 following commands:</para>
 
 
-<para><screen><userinput>cp -f readelf.h readelf.h.backup &amp;&amp;</userinput>
+<para><screen><userinput>cp readelf.h readelf.h.backup &amp;&amp;</userinput>
 <userinput>sed '/#define __/a \</userinput>
 <userinput>sed '/#define __/a \</userinput>
 <userinput>&nbsp;&nbsp;&nbsp;#include &lt;stdint.h&gt;' readelf.h.backup &gt; readelf.h &amp;&amp;</userinput>
 <userinput>&nbsp;&nbsp;&nbsp;#include &lt;stdint.h&gt;' readelf.h.backup &gt; readelf.h &amp;&amp;</userinput>
 <userinput>./configure --prefix=/usr --datadir=/usr/share/misc &amp;&amp;</userinput>
 <userinput>./configure --prefix=/usr --datadir=/usr/share/misc &amp;&amp;</userinput>

+ 3 - 3
chapter06/glibc-inst.xml

@@ -10,17 +10,17 @@ would do.</para>
 
 
 <para><screen><userinput>mknod -m 0666 /dev/null c 1 3 &amp;&amp;</userinput>
 <para><screen><userinput>mknod -m 0666 /dev/null c 1 3 &amp;&amp;</userinput>
 <userinput>touch /etc/ld.so.conf &amp;&amp;</userinput>
 <userinput>touch /etc/ld.so.conf &amp;&amp;</userinput>
-<userinput>cp -f malloc/Makefile malloc/Makefile.backup &amp;&amp;</userinput>
+<userinput>cp malloc/Makefile malloc/Makefile.backup &amp;&amp;</userinput>
 <userinput>sed 's%\$(PERL)%/usr/bin/perl%' malloc/Makefile &gt; tmp~ &amp;&amp;</userinput>
 <userinput>sed 's%\$(PERL)%/usr/bin/perl%' malloc/Makefile &gt; tmp~ &amp;&amp;</userinput>
 <userinput>mv -f tmp~ malloc/Makefile &amp;&amp;</userinput>
 <userinput>mv -f tmp~ malloc/Makefile &amp;&amp;</userinput>
-<userinput>cp -f login/Makefile login/Makefile.backup &amp;&amp;</userinput>
+<userinput>cp login/Makefile login/Makefile.backup &amp;&amp;</userinput>
 <userinput>sed 's/root/0/' login/Makefile &gt; tmp~ &amp;&amp;</userinput>
 <userinput>sed 's/root/0/' login/Makefile &gt; tmp~ &amp;&amp;</userinput>
 <userinput>mv -f tmp~ login/Makefile &amp;&amp;</userinput>
 <userinput>mv -f tmp~ login/Makefile &amp;&amp;</userinput>
 <userinput>mkdir ../glibc-build &amp;&amp;</userinput>
 <userinput>mkdir ../glibc-build &amp;&amp;</userinput>
 <userinput>cd ../glibc-build &amp;&amp;</userinput>
 <userinput>cd ../glibc-build &amp;&amp;</userinput>
 <userinput>../glibc-&glibc-version;/configure --prefix=/usr \</userinput>
 <userinput>../glibc-&glibc-version;/configure --prefix=/usr \</userinput>
 <userinput>&nbsp;&nbsp;&nbsp;--enable-add-ons --libexecdir=/usr &amp;&amp;</userinput>
 <userinput>&nbsp;&nbsp;&nbsp;--enable-add-ons --libexecdir=/usr &amp;&amp;</userinput>
-<userinput>cp -f config.make config.make.backup &amp;&amp;</userinput>
+<userinput>cp config.make config.make.backup &amp;&amp;</userinput>
 <userinput>sed 's/cross-compiling = yes/cross-compiling = no/' \</userinput>
 <userinput>sed 's/cross-compiling = yes/cross-compiling = no/' \</userinput>
 <userinput>&nbsp;&nbsp;&nbsp;config.make &gt; tmp~ &amp;&amp;</userinput>
 <userinput>&nbsp;&nbsp;&nbsp;config.make &gt; tmp~ &amp;&amp;</userinput>
 <userinput>mv -f tmp~ config.make &amp;&amp;</userinput>
 <userinput>mv -f tmp~ config.make &amp;&amp;</userinput>

+ 1 - 1
chapter06/netkitbase-inst.xml

@@ -7,7 +7,7 @@
 <userinput>make &amp;&amp;</userinput>
 <userinput>make &amp;&amp;</userinput>
 <userinput>make install &amp;&amp;</userinput>
 <userinput>make install &amp;&amp;</userinput>
 <userinput>cd etc.sample &amp;&amp;</userinput>
 <userinput>cd etc.sample &amp;&amp;</userinput>
-<userinput>cp -f services protocols /etc</userinput></screen></para>
+<userinput>cp services protocols /etc</userinput></screen></para>
 
 
 <para>There are other files in the <filename
 <para>There are other files in the <filename
 class="directory">etc.sample</filename> directory which might be of
 class="directory">etc.sample</filename> directory which might be of

+ 1 - 1
chapter06/shadowpwd-exp.xml

@@ -6,7 +6,7 @@
 compilation bug which occurs due to a variable (nflg), being used but not 
 compilation bug which occurs due to a variable (nflg), being used but not 
 defined.</para>
 defined.</para>
 
 
-<para><userinput>cp -f limits login.access and others:</userinput> These files
+<para><userinput>cp limits login.access and others:</userinput> These files
 were not installed during the installation of the package so we copy
 were not installed during the installation of the package so we copy
 them manually as those files are used to configure authentication
 them manually as those files are used to configure authentication
 details on the system.</para>
 details on the system.</para>

+ 1 - 1
chapter06/shadowpwd-inst.xml

@@ -12,7 +12,7 @@ following commands:</para>
 <userinput>make &amp;&amp;</userinput>
 <userinput>make &amp;&amp;</userinput>
 <userinput>make install &amp;&amp;</userinput>
 <userinput>make install &amp;&amp;</userinput>
 <userinput>cd etc &amp;&amp;</userinput>
 <userinput>cd etc &amp;&amp;</userinput>
-<userinput>cp -f limits login.access /etc &amp;&amp;</userinput>
+<userinput>cp limits login.access /etc &amp;&amp;</userinput>
 <userinput>sed 's%/var/spool/mail%/var/mail%' login.defs.linux &gt; /etc/login.defs</userinput>
 <userinput>sed 's%/var/spool/mail%/var/mail%' login.defs.linux &gt; /etc/login.defs</userinput>
 <userinput>cd /lib &amp;&amp;</userinput>
 <userinput>cd /lib &amp;&amp;</userinput>
 <userinput>mv libshadow.a /usr/lib &amp;&amp;</userinput>
 <userinput>mv libshadow.a /usr/lib &amp;&amp;</userinput>

+ 2 - 2
chapter08/kernel.xml

@@ -25,8 +25,8 @@ make menuconfig.</para>
 <userinput>make bzImage &amp;&amp;</userinput>
 <userinput>make bzImage &amp;&amp;</userinput>
 <userinput>make modules &amp;&amp;</userinput>
 <userinput>make modules &amp;&amp;</userinput>
 <userinput>make modules_install &amp;&amp;</userinput>
 <userinput>make modules_install &amp;&amp;</userinput>
-<userinput>cp -f arch/i386/boot/bzImage /boot/lfskernel &amp;&amp;</userinput>
-<userinput>cp -f System.map /boot</userinput></screen></para>
+<userinput>cp arch/i386/boot/bzImage /boot/lfskernel &amp;&amp;</userinput>
+<userinput>cp System.map /boot</userinput></screen></para>
 
 
 <para>Note: the arch/i386/boot/bzImage path may vary on 
 <para>Note: the arch/i386/boot/bzImage path may vary on 
 different platforms.</para>
 different platforms.</para>

+ 3 - 3
chapter08/lilo.xml

@@ -14,7 +14,7 @@ the host system or the LFS system).</para>
 system:</para>
 system:</para>
 
 
 <para><screen><userinput>logout</userinput>
 <para><screen><userinput>logout</userinput>
-<userinput>cp -f $LFS/boot/lfskernel /boot</userinput></screen></para>
+<userinput>cp $LFS/boot/lfskernel /boot</userinput></screen></para>
 
 
 <para>The next step is adding an entry to /etc/lilo.conf so that we can
 <para>The next step is adding an entry to /etc/lilo.conf so that we can
 choose LFS when booting the computer:</para>
 choose LFS when booting the computer:</para>
@@ -40,8 +40,8 @@ the line <userinput>read-only</userinput> should be changed to
 <para>The last step is syncing the host system lilo config. files with the
 <para>The last step is syncing the host system lilo config. files with the
 LFS system:</para>
 LFS system:</para>
 
 
-<para><screen><userinput>cp -f /etc/lilo.conf $LFS/etc &amp;&amp;</userinput>
-<userinput>cp -f &lt;kernel images&gt; $LFS/boot</userinput></screen></para>
+<para><screen><userinput>cp /etc/lilo.conf $LFS/etc &amp;&amp;</userinput>
+<userinput>cp &lt;kernel images&gt; $LFS/boot</userinput></screen></para>
 
 
 <para>To find out which kernel images files are being used, look at the
 <para>To find out which kernel images files are being used, look at the
 /etc/lilo.conf file and find the lines starting with
 /etc/lilo.conf file and find the lines starting with