[Clfs-commits] commit: r4630 - in /trunk/BOOK: boot/mips64/ boot/sparc64/ boot/x86_64/ chroot/mips64/ chroot/ppc64/ chroot/sparc64/ chroot/x86_64/ cross-tools/mips64/ cross-tools/multilib/ cross-tools/sparc64-64/ cross-tools/sparc64/ cross-tools/x86/ cross-tools/x86_64/

svn at cross-lfs.org svn at cross-lfs.org
Sat Jan 31 15:06:05 PST 2009


Author: jim
Date: Sat Jan 31 23:06:05 2009
New Revision: 4630

Log:
Use CAT to replace echo's whenever possible

Modified:
    trunk/BOOK/boot/mips64/flags.xml
    trunk/BOOK/boot/sparc64/flags.xml
    trunk/BOOK/boot/x86_64/flags.xml
    trunk/BOOK/chroot/mips64/flags.xml
    trunk/BOOK/chroot/ppc64/flags.xml
    trunk/BOOK/chroot/sparc64/flags.xml
    trunk/BOOK/chroot/x86_64/flags.xml
    trunk/BOOK/cross-tools/mips64/flags.xml
    trunk/BOOK/cross-tools/multilib/flags.xml
    trunk/BOOK/cross-tools/sparc64-64/flags.xml
    trunk/BOOK/cross-tools/sparc64/flags.xml
    trunk/BOOK/cross-tools/x86/variables.xml
    trunk/BOOK/cross-tools/x86_64/variables.xml

Modified: trunk/BOOK/boot/mips64/flags.xml
==============================================================================
--- trunk/BOOK/boot/mips64/flags.xml (original)
+++ trunk/BOOK/boot/mips64/flags.xml Sat Jan 31 23:06:05 2009
@@ -12,10 +12,11 @@
 
   <para>We will need to copy our build variables into our new system:</para>
 
-<screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ${CLFS}/root/.bash_profile
-echo export BUILDN32=\""${BUILDN32}\"" >> ${CLFS}/root/.bash_profile
-echo export BUILD64=\""${BUILD64}\"" >> ${CLFS}/root/.bash_profile
-echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> \
-    ${CLFS}/root/.bash_profile</userinput></screen>
+<screen><userinput>cat >> ${CLFS}/root/.bash_profile << EOF
+export BUILD32="${BUILD32}"
+export BUILDN32="${BUILDN32}"
+export BUILD64="${BUILD64}"
+export CLFS_TARGET32="${CLFS_TARGET32}"
+EOF</userinput></screen>
 
 </sect1>

Modified: trunk/BOOK/boot/sparc64/flags.xml
==============================================================================
--- trunk/BOOK/boot/sparc64/flags.xml (original)
+++ trunk/BOOK/boot/sparc64/flags.xml Sat Jan 31 23:06:05 2009
@@ -12,9 +12,10 @@
 
   <para>We will need to copy our build variables into our new system:</para>
 
-<screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ${CLFS}/root/.bash_profile
-echo export BUILD64=\""${BUILD64}\"" >> ${CLFS}/root/.bash_profile
-echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> \
-    ${CLFS}/root/.bash_profile</userinput></screen>
+<screen><userinput>cat >> ${CLFS}/root/.bash_profile << EOF
+export BUILD32="${BUILD32}"
+export BUILD64="${BUILD64}"
+export CLFS_TARGET32="${CLFS_TARGET32}"
+EOF</userinput></screen>
 
 </sect1>

Modified: trunk/BOOK/boot/x86_64/flags.xml
==============================================================================
--- trunk/BOOK/boot/x86_64/flags.xml (original)
+++ trunk/BOOK/boot/x86_64/flags.xml Sat Jan 31 23:06:05 2009
@@ -12,9 +12,10 @@
 
   <para>We will need to copy our build variables into our new system:</para>
 
-<screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ${CLFS}/root/.bash_profile
-echo export BUILD64=\""${BUILD64}\"" >> ${CLFS}/root/.bash_profile
-echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> \
-    ${CLFS}/root/.bash_profile</userinput></screen>
+<screen><userinput>cat >> ${CLFS}/root/.bash_profile << EOF
+export BUILD32="${BUILD32}"
+export BUILD64="${BUILD64}"
+export CLFS_TARGET32="${CLFS_TARGET32}"
+EOF</userinput></screen>
 
 </sect1>

Modified: trunk/BOOK/chroot/mips64/flags.xml
==============================================================================
--- trunk/BOOK/chroot/mips64/flags.xml (original)
+++ trunk/BOOK/chroot/mips64/flags.xml Sat Jan 31 23:06:05 2009
@@ -24,9 +24,11 @@
    <para>To prevent errors when you come back to your build, we will export these
    variables to prevent any build issues in the future:</para>
 
-<screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bash_profile
-echo export BUILDN32=\""${BUILDN32}\"" >> ~/.bash_profile
-echo export BUILD64=\""${BUILD64}\"" >> ~/.bash_profile
-echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ~/.bash_profile</userinput></screen>
+<screen><userinput>cat >> ${CLFS}/root/.bash_profile << EOF
+export BUILD32="${BUILD32}"
+export BUILDN32="${BUILDN32}"
+export BUILD64="${BUILD64}"
+export CLFS_TARGET32="${CLFS_TARGET32}"
+EOF</userinput></screen>
 
 </sect1>

Modified: trunk/BOOK/chroot/ppc64/flags.xml
==============================================================================
--- trunk/BOOK/chroot/ppc64/flags.xml (original)
+++ trunk/BOOK/chroot/ppc64/flags.xml Sat Jan 31 23:06:05 2009
@@ -23,8 +23,10 @@
    <para>To prevent errors when you come back to your build, we will export these
    variables to prevent any build issues in the future:</para>
 
-<screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bash_profile
-echo export BUILD64=\""${BUILD64}\"" >> ~/.bash_profile
-echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ~/.bash_profile</userinput></screen>
+<screen><userinput>cat >> ${CLFS}/root/.bash_profile << EOF
+export BUILD32="${BUILD32}"
+export BUILD64="${BUILD64}"
+export CLFS_TARGET32="${CLFS_TARGET32}"
+EOF</userinput></screen>
 
 </sect1>

Modified: trunk/BOOK/chroot/sparc64/flags.xml
==============================================================================
--- trunk/BOOK/chroot/sparc64/flags.xml (original)
+++ trunk/BOOK/chroot/sparc64/flags.xml Sat Jan 31 23:06:05 2009
@@ -23,9 +23,11 @@
    <para>To prevent errors when you come back to your build, we will export these
    variables to prevent any build issues in the future:</para>
 
-<screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bash_profile
-echo export BUILD64=\""${BUILD64}\"" >> ~/.bash_profile
-echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ~/.bash_profile</userinput></screen>
+<screen><userinput>cat >> ${CLFS}/root/.bash_profile << EOF
+export BUILD32="${BUILD32}"
+export BUILD64="${BUILD64}"
+export CLFS_TARGET32="${CLFS_TARGET32}"
+EOF</userinput></screen>
 
    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    href="../../cross-tools/sparc64/flags.xml"

Modified: trunk/BOOK/chroot/x86_64/flags.xml
==============================================================================
--- trunk/BOOK/chroot/x86_64/flags.xml (original)
+++ trunk/BOOK/chroot/x86_64/flags.xml Sat Jan 31 23:06:05 2009
@@ -23,8 +23,10 @@
    <para>To prevent errors when you come back to your build, we will export these
    variables to prevent any build issues in the future:</para>
 
-<screen><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bash_profile
-echo export BUILD64=\""${BUILD64}\"" >> ~/.bash_profile
-echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ~/.bash_profile</userinput></screen>
+<screen><userinput>cat >> ${CLFS}/root/.bash_profile << EOF
+export BUILD32="${BUILD32}"
+export BUILD64="${BUILD64}"
+export CLFS_TARGET32="${CLFS_TARGET32}"
+EOF</userinput></screen>
 
 </sect1>

Modified: trunk/BOOK/cross-tools/mips64/flags.xml
==============================================================================
--- trunk/BOOK/cross-tools/mips64/flags.xml (original)
+++ trunk/BOOK/cross-tools/mips64/flags.xml Sat Jan 31 23:06:05 2009
@@ -22,8 +22,10 @@
      href="../multilib/flags.xml"
      xpointer="xpointer(//*[@os='c'])"/>
 
-<screen os="d"><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bashrc
-echo export BUILDN32=\""${BUILDN32}\"" >> ~/.bashrc
-echo export BUILD64=\""${BUILD64}\"" >> ~/.bashrc</userinput></screen>
+<screen os="d"><userinput>cat >> ~/.bashrc << EOF
+export BUILD32="${BUILD32}"
+export BUILDN32="${BUILDN32}"
+export BUILD64="${BUILD64}"
+EOF</userinput></screen>
 
 </sect1>

Modified: trunk/BOOK/cross-tools/multilib/flags.xml
==============================================================================
--- trunk/BOOK/cross-tools/multilib/flags.xml (original)
+++ trunk/BOOK/cross-tools/multilib/flags.xml Sat Jan 31 23:06:05 2009
@@ -19,7 +19,9 @@
   <para os="c">Let's add the build flags to <filename>~/.bashrc</filename> to
   prevent issues if we stop and come back later:</para>
 
-<screen os="d"><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bashrc
-echo export BUILD64=\""${BUILD64}\"" >> ~/.bashrc</userinput></screen>
+<screen os="d"><userinput>cat >> ~/.bashrc << EOF
+export BUILD32="${BUILD32}"
+export BUILD64="${BUILD64}"
+EOF</userinput></screen>
 
 </sect1>

Modified: trunk/BOOK/cross-tools/sparc64-64/flags.xml
==============================================================================
--- trunk/BOOK/cross-tools/sparc64-64/flags.xml (original)
+++ trunk/BOOK/cross-tools/sparc64-64/flags.xml Sat Jan 31 23:06:05 2009
@@ -20,8 +20,10 @@
    href="../64/flags.xml"
    xpointer="xpointer(//*[@os='c'])"/>
 
-<screen os="d"><userinput>echo export BUILD64=\""${BUILD64}\"" >> ~/.bashrc
-echo export GCCTARGET=\""${GCCTARGET}\"" >> ~/.bashrc</userinput></screen>
+<screen os="d"><userinput>cat >> ~/.bashrc << EOF
+export BUILD64="${BUILD64}"
+export GCCTARGET="${GCCTARGET}"
+EOF</userinput></screen>
 
    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    href="../sparc64/flags.xml"

Modified: trunk/BOOK/cross-tools/sparc64/flags.xml
==============================================================================
--- trunk/BOOK/cross-tools/sparc64/flags.xml (original)
+++ trunk/BOOK/cross-tools/sparc64/flags.xml Sat Jan 31 23:06:05 2009
@@ -21,9 +21,11 @@
    href="../multilib/flags.xml"
    xpointer="xpointer(//*[@os='c'])"/>
 
-<screen os="d"><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bashrc
-echo export BUILD64=\""${BUILD64}\"" >> ~/.bashrc
-echo export GCCTARGET=\""${GCCTARGET}\"" >> ~/.bashrc</userinput></screen>
+<screen os="d"><userinput>cat >> ~/.bashrc << EOF
+export BUILD32="${BUILD32}"
+export BUILD64="${BUILD64}"
+export GCCTARGET="${GCCTARGET}"
+EOF</userinput></screen>
 
   <para os="e">The following table gives the entires for different Sparc 64 capable
   processors. Pick the processor that matches your system. Note: GCC settings are

Modified: trunk/BOOK/cross-tools/x86/variables.xml
==============================================================================
--- trunk/BOOK/cross-tools/x86/variables.xml (original)
+++ trunk/BOOK/cross-tools/x86/variables.xml Sat Jan 31 23:06:05 2009
@@ -37,8 +37,10 @@
   <para os="e">Now add these to <filename>~/.bashrc</filename>, just in
   case you have to exit and restart building later:</para>
 
-<screen os="f"><userinput>echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc
-echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc</userinput></screen>
+<screen os="f"><userinput>cat >> ~/.bashrc << EOF
+export CLFS_HOST="${CLFS_HOST}"
+export CLFS_TARGET="${CLFS_TARGET}"
+EOF</userinput></screen>
 
   <table os="g">
     <title>Processor Type and  Target Triplets</title>

Modified: trunk/BOOK/cross-tools/x86_64/variables.xml
==============================================================================
--- trunk/BOOK/cross-tools/x86_64/variables.xml (original)
+++ trunk/BOOK/cross-tools/x86_64/variables.xml Sat Jan 31 23:06:05 2009
@@ -36,8 +36,10 @@
     href="../x86/variables.xml"
     xpointer="xpointer(//*[@os='e'])"/>
 
-<screen os="f"><userinput>echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc
-echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc
-echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" >> ~/.bashrc</userinput></screen>
+<screen os="f"><userinput>cat >> ~/.bashrc << EOF
+export CLFS_HOST="${CLFS_HOST}"
+export CLFS_TARGET="${CLFS_TARGET}"
+export CLFS_TARGET32="${CLFS_TARGET32}"
+EOF</userinput></screen>
 
 </sect1>




More information about the Clfs-commits mailing list