Changeset 2484938


Ignore:
Timestamp:
Sep 15, 2006, 7:06:38 AM (18 years ago)
Author:
Chris Staub <chris@…>
Children:
6ec9929
Parents:
142e52c5
Message:

Change occurences of $VARIABLE to $\{VARIABLE\} for consistency

Files:
18 edited

Legend:

Unmodified
Added
Removed
  • boot/common/changingowner.xml

    r142e52c5 r2484938  
    1111  <title>Changing Ownership</title>
    1212
    13   <para os="a">Currently, the <filename class="directory">$CLFS</filename>
     13  <para os="a">Currently, the <filename class="directory">${CLFS}</filename>
    1414  directory and all of its subdirectories  are owned by the user
    1515  <systemitem class="username">clfs</systemitem>, a user that exists only
    16   on the host system. For security reasons, the $CLFS root directory and
     16  on the host system. For security reasons, the ${CLFS} root directory and
    1717  all of it subdirectories should be owned by
    1818  <systemitem class="username">root</systemitem>. Change the ownership
    19   for $CLFS and its subdirectories by running this command:</para>
     19  for ${CLFS} and its subdirectories by running this command:</para>
    2020
    2121<screen os="b"><userinput>chown -Rv root:root ${CLFS}</userinput></screen>
  • boot/common/devices.xml

    r142e52c5 r2484938  
    2121      <para>The commands in the remainder of the book should be run as
    2222      the <systemitem class="username">root</systemitem> user. Also,
    23       double-check that $CLFS is set as
     23      double-check that ${CLFS} is set as
    2424      <systemitem class="username">root</systemitem>.</para>
    2525    </note>
  • boot/common/introduction.xml

    r142e52c5 r2484938  
    1717  <para>There are a few additional packages that will need to be
    1818  installed to allow you to boot the minimal system. Some of these
    19   packages will be installed onto the root or in /usr on the CLFS
    20   partition ($CLFS/bin, $CLFS/usr/lib, etc...), rather than /tools, using the
     19  packages will be installed onto root or in /usr on the CLFS
     20  partition (${CLFS}/bin, ${CLFS}/usr/bin, etc...), rather than /tools, using the
    2121  "DESTDIR" option with make. This will require the
    2222  <systemitem class="username">clfs</systemitem> user to have write access to
    23   the rest of the $CLFS partition, so you will need to temporarily change the
    24   ownership of $CLFS to the <systemitem class="username">clfs</systemitem> user.
     23  the rest of the CLFS partition, so you will need to temporarily change the
     24  ownership of ${CLFS} to the <systemitem class="username">clfs</systemitem> user.
    2525  Run the following command as <systemitem
    2626  class="username">root</systemitem>:</para>
    2727
    28 <screen><userinput>chown -v clfs $CLFS</userinput></screen>
     28<screen><userinput>chown -v clfs ${CLFS}</userinput></screen>
    2929
    3030</sect1>
  • chroot/common/chroot.xml

    r142e52c5 r2484938  
    1717  temporary tools:</para>
    1818
    19 <screen><userinput>chroot "$CLFS" /tools/bin/env -i \
    20     HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
     19<screen><userinput>chroot "${CLFS}" /tools/bin/env -i \
     20    HOME=/root TERM="${TERM}" PS1='\u:\w\$ ' \
    2121    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
    2222    /tools/bin/bash --login +h</userinput></screen>
     
    2727  <envar>TERM</envar>, <envar>PS1</envar>, and
    2828  <envar>PATH</envar> variables are set again. The
    29   <parameter>TERM=$TERM</parameter> construct will set the
     29  <parameter>TERM=${TERM}</parameter> construct will set the
    3030  <envar>TERM</envar> variable inside chroot to the same value as
    3131  outside chroot. This variable is needed for programs like
     
    3838  <envar>CLFS</envar> variable anymore, because all work will be
    3939  restricted to the CLFS file system.  This is because the Bash shell is
    40   told that <filename class="directory">$CLFS</filename> is now the root
     40  told that <filename class="directory">${CLFS}</filename> is now the root
    4141  (<filename class="directory">/</filename>) directory.</para>
    4242
  • chroot/common/kernfs.xml

    r142e52c5 r2484938  
    2323  be mounted:</para>
    2424
    25 <screen><userinput>mkdir -pv $CLFS/{dev,proc,sys}</userinput></screen>
     25<screen><userinput>mkdir -pv ${CLFS}/{dev,proc,sys}</userinput></screen>
    2626
    2727  <para>Now mount the file systems:</para>
    2828
    29 <screen><userinput>mount -vt proc proc $CLFS/proc
    30 mount -vt sysfs sysfs $CLFS/sys</userinput></screen>
     29<screen><userinput>mount -vt proc proc ${CLFS}/proc
     30mount -vt sysfs sysfs ${CLFS}/sys</userinput></screen>
    3131
    3232  <para>Remember that if for any reason you stop working on the CLFS system
     
    3838  starting Udev early in the boot process, so we create them here:</para>
    3939
    40 <screen><userinput>mknod -m 600 $CLFS/dev/console c 5 1
    41 mknod -m 666 $CLFS/dev/null c 1 3</userinput></screen>
     40<screen><userinput>mknod -m 600 ${CLFS}/dev/console c 5 1
     41mknod -m 666 ${CLFS}/dev/null c 1 3</userinput></screen>
    4242
    4343  <para>Once the system is complete and booting, the rest of our device
     
    4848  appear in the new CLFS filesystem:</para>
    4949
    50 <screen><userinput>mount -v -o bind /dev $CLFS/dev</userinput></screen>
     50<screen><userinput>mount -v -o bind /dev ${CLFS}/dev</userinput></screen>
    5151
    5252  <para>Additional file systems will soon be mounted from within the chroot
     
    5454  for each of these now:</para>
    5555
    56 <screen><userinput>mount -f -vt tmpfs tmpfs $CLFS/dev/shm
    57 mount -f -vt devpts -o gid=4,mode=620 devpts $CLFS/dev/pts</userinput></screen>
     56<screen><userinput>mount -f -vt tmpfs tmpfs ${CLFS}/dev/shm
     57mount -f -vt devpts -o gid=4,mode=620 devpts ${CLFS}/dev/pts</userinput></screen>
    5858
    5959</sect1>
  • final-preps/aboutclfs.xml

    r142e52c5 r2484938  
    99  <?dbhtml filename="aboutclfs.html"?>
    1010
    11   <title>About $CLFS</title>
     11  <title>About ${CLFS}</title>
    1212
    1313  <para>Throughout this book, the environment variable <envar>CLFS</envar> will
     
    1616  Check that the <envar>CLFS</envar> variable is set up properly with:</para>
    1717
    18 <screen><userinput>echo $CLFS</userinput></screen>
     18<screen><userinput>echo ${CLFS}</userinput></screen>
    1919
    2020  <para>Make sure the output shows the path to the CLFS partition's mount
     
    2626
    2727  <para>Having this variable set is beneficial in that commands such as
    28   <command>install -dv $CLFS/tools</command> can be typed literally. The shell
    29   will automatically replace <quote>$CLFS</quote> with
     28  <command>install -dv ${CLFS}/tools</command> can be typed literally. The shell
     29  will automatically replace <quote>${CLFS}</quote> with
    3030  <quote>/mnt/clfs</quote> (or whatever the variable was set to) when it
    3131  processes the command line.</para>
    3232
    33   <para>If you haven't created the <filename class="directory">$CLFS</filename>
     33  <para>If you haven't created the <filename class="directory">${CLFS}</filename>
    3434  directory, do so at this time by issuing the following commands:</para>
    3535
    36 <screen><userinput>install -dv $CLFS</userinput></screen>
     36<screen><userinput>install -dv ${CLFS}</userinput></screen>
    3737
    38   <para>Do not forget to check that <envar>$CLFS</envar> is set whenever
     38  <para>Do not forget to check that <envar>${CLFS}</envar> is set whenever
    3939  you leave and reenter the current working environment (as when doing a
    4040  <quote>su</quote> to <systemitem class="username">root</systemitem> or
  • final-preps/addinguser.xml

    r142e52c5 r2484938  
    7979
    8080  <para>Grant <systemitem class="username">clfs</systemitem> full access to
    81   <filename class="directory">$CLFS/cross-tools</filename> and
    82   <filename class="directory">$CLFS/tools</filename> by making <systemitem
     81  <filename class="directory">${CLFS}/cross-tools</filename> and
     82  <filename class="directory">${CLFS}/tools</filename> by making <systemitem
    8383  class="username">clfs</systemitem> the directorys' owner:</para>
    8484
    85 <screen><userinput>chown -v clfs $CLFS/tools
    86 chown -v clfs $CLFS/cross-tools</userinput></screen>
     85<screen><userinput>chown -v clfs ${CLFS}/tools
     86chown -v clfs ${CLFS}/cross-tools</userinput></screen>
    8787
    8888  <para>If a separate working directory was created as suggested,
    8989  give user <systemitem class="username">clfs</systemitem> ownership of this directory:</para>
    9090
    91 <screen><userinput>chown -v clfs $CLFS/sources</userinput></screen>
     91<screen><userinput>chown -v clfs ${CLFS}/sources</userinput></screen>
    9292
    9393  <para>Next, login as user <systemitem class="username">clfs</systemitem>.
  • final-preps/creatingcrossdir.xml

    r142e52c5 r2484938  
    99  <?dbhtml filename="creatingcrossdir.html"?>
    1010
    11   <title>Creating the $CLFS/cross-tools Directory</title>
     11  <title>Creating the ${CLFS}/cross-tools Directory</title>
    1212
    1313  <para>The cross-binutils and cross-compiler built in
    1414  <xref linkend="chapter-cross-tools"/> will be installed under
    15   <filename class="directory">$CLFS/cross-tools</filename> to keep them
     15  <filename class="directory">${CLFS}/cross-tools</filename> to keep them
    1616  separate from the host programs. The programs compiled here are
    1717  cross-tools and will not be a part of the final CLFS system or the
     
    2222  <systemitem class="username">root</systemitem>:</para>
    2323
    24 <screen><userinput>install -dv $CLFS/cross-tools</userinput></screen>
     24<screen><userinput>install -dv ${CLFS}/cross-tools</userinput></screen>
    2525
    2626  <para>The next step is to create a <filename
     
    2929  Run this command as  <systemitem class="username">root</systemitem> as well:</para>
    3030
    31 <screen><userinput>ln -sv $CLFS/cross-tools /</userinput></screen>
     31<screen><userinput>ln -sv ${CLFS}/cross-tools /</userinput></screen>
    3232
    3333  <para>The symlink isn't technically necessary (though the book's
    3434  instructions do assume its existence), but is there mainly for
    35   consistency (because /tools is also symlinked to $CLFS/tools) and to
     35  consistency (because /tools is also symlinked to ${CLFS}/tools) and to
    3636  simplify the installation of the cross-compile tools.</para>
    3737
  • final-preps/creatingtoolsdir.xml

    r142e52c5 r2484938  
    99  <?dbhtml filename="creatingtoolsdir.html"?>
    1010
    11   <title>Creating the $CLFS/tools Directory</title>
     11  <title>Creating the ${CLFS}/tools Directory</title>
    1212
    1313  <para>All programs compiled in <xref linkend="chapter-temp-system"/>
    14   will be installed under <filename class="directory">$CLFS/tools</filename>
     14  will be installed under <filename class="directory">${CLFS}/tools</filename>
    1515  to keep them separate from the programs compiled in <xref
    1616  linkend="chapter-building-system"/>. The programs compiled here are
     
    2424  <systemitem class="username">root</systemitem>:</para>
    2525
    26 <screen><userinput>install -dv $CLFS/tools</userinput></screen>
     26<screen><userinput>install -dv ${CLFS}/tools</userinput></screen>
    2727
    2828  <para>The next step is to create a <filename class="symlink">/tools</filename>
     
    3131  class="username">root</systemitem> as well:</para>
    3232
    33 <screen><userinput>ln -sv $CLFS/tools /</userinput></screen>
     33<screen><userinput>ln -sv ${CLFS}/tools /</userinput></screen>
    3434
    3535  <note>
  • final-preps/settingenviron.xml

    r142e52c5 r2484938  
    1717
    1818<screen os="b"><userinput>cat &gt; ~/.bash_profile &lt;&lt; "EOF"
    19 <literal>exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash</literal>
     19<literal>exec env -i HOME=${HOME} TERM=${TERM} PS1='\u:\w\$ ' /bin/bash</literal>
    2020EOF</userinput></screen>
    2121
     
    5656  the shell will always search the <envar>PATH</envar> when a program is to
    5757  be run. As such, the shell will find the newly compiled tools in
    58   <filename class="directory">$CLFS/cross-tools</filename> as soon as they are
     58  <filename class="directory">/cross-tools</filename> as soon as they are
    5959  available without remembering a previous version of the same program in a
    6060  different location.</para>
  • final-system/common/stripping.xml

    r142e52c5 r2484938  
    3333    <para os="e">Then reenter it with:</para>
    3434
    35 <screen os="f" role="nodump"><userinput>chroot $CLFS /tools/bin/env -i \
    36     HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
     35<screen os="f" role="nodump"><userinput>chroot ${CLFS} /tools/bin/env -i \
     36    HOME=/root TERM=${TERM} PS1='\u:\w\$ ' \
    3737    PATH=/bin:/usr/bin:/sbin:/usr/sbin \
    3838    /tools/bin/bash --login</userinput></screen>
  • introduction/common/askforhelp.xml

    r142e52c5 r2484938  
    4747      </listitem>
    4848      <listitem>
    49         <para>The value of the $CLFS_HOST, $CLFS_TARGET, $BUILD32, and $BUILD64
    50         environment variables.</para>
     49        <para>The value of the ${CLFS_HOST}, ${CLFS_TARGET}, ${BUILD32}, and
     50        ${BUILD64} environment variables.</para>
    5151      </listitem>
    5252      <listitem>
  • materials/common/introduction.xml

    r142e52c5 r2484938  
    3030  that is conveniently available throughout the entire build. A working
    3131  directory is also required to unpack the sources and build them.
    32   <filename class="directory">$CLFS/sources</filename> can be used both
     32  <filename class="directory">${CLFS}/sources</filename> can be used both
    3333  as the place to store the tarballs and patches and as a working
    3434  directory. By using this directory, the required elements will be
     
    4040  starting the download session:</para>
    4141
    42 <screen><userinput>mkdir -v $CLFS/sources</userinput></screen>
     42<screen><userinput>mkdir -v ${CLFS}/sources</userinput></screen>
    4343
    4444  <para>Make this directory writable and sticky. When a directory is
     
    4848  write and sticky modes:</para>
    4949
    50 <screen><userinput>chmod -v a+wt $CLFS/sources</userinput></screen>
     50<screen><userinput>chmod -v a+wt ${CLFS}/sources</userinput></screen>
    5151
    5252</sect1>
  • materials/common/patches.xml

    r142e52c5 r2484938  
    155155
    156156    <varlistentry>
    157       <term>Inetutils Fixes Patch - <token>&inetutils-inet_addr_fix-patch-size;</token>:</term>
     157      <term>Inetutils inet_addr Patch - <token>&inetutils-inet_addr_fix-patch-size;</token>:</term>
    158158      <listitem>
    159159        <para>Download: <ulink
  • partitioning/common/mounting.xml

    r142e52c5 r2484938  
    2626  running:</para>
    2727
    28 <screen><userinput>mkdir -pv $CLFS
    29 mount -v /dev/<replaceable>[xxx]</replaceable> $CLFS</userinput></screen>
     28<screen><userinput>mkdir -pv ${CLFS}
     29mount -v /dev/<replaceable>[xxx]</replaceable> ${CLFS}</userinput></screen>
    3030
    3131  <para>Replace <replaceable>[xxx]</replaceable> with the designation of
     
    3636  class="directory">/usr</filename>), mount them using:</para>
    3737
    38 <screen><userinput>mkdir -pv $CLFS
    39 mount -v /dev/<replaceable>[xxx]</replaceable> $CLFS
    40 mkdir -v $CLFS/usr
    41 mount -v /dev/<replaceable>[yyy]</replaceable> $CLFS/usr</userinput></screen>
     38<screen><userinput>mkdir -pv ${CLFS}
     39mount -v /dev/<replaceable>[xxx]</replaceable> ${CLFS}
     40mkdir -v ${CLFS}/usr
     41mount -v /dev/<replaceable>[yyy]</replaceable> ${CLFS}/usr</userinput></screen>
    4242
    4343  <para>Replace <replaceable>[xxx]</replaceable> and
  • prologue/common/typography.xml

    r142e52c5 r2484938  
    4040  and websites.</para>
    4141
    42 <screen role="nodump"><userinput>cat &gt; $CLFS/etc/group &lt;&lt; "EOF"
     42<screen role="nodump"><userinput>cat &gt; ${CLFS}/etc/group &lt;&lt; "EOF"
    4343<literal>root:x:0:
    4444bin:x:1:
     
    4848  <para>This format is used when creating configuration files. The first
    4949  command tells the system to create the file
    50   <filename>$CLFS/etc/group</filename> from whatever is typed on the
     50  <filename>${CLFS}/etc/group</filename> from whatever is typed on the
    5151  following lines until the sequence end of file (EOF) is encountered.
    5252  Therefore, this entire section is generally typed as seen.</para>
  • temp-system/common/introduction.xml

    r142e52c5 r2484938  
    1919  <para>The tools in this chapter are cross-compiled using the toolchain in
    2020  /cross-tools and will be installed under the
    21   <filename class="directory">$CLFS/tools</filename> directory to keep
     21  <filename class="directory">${CLFS}/tools</filename> directory to keep
    2222  them separate from the files installed in <xref
    2323  linkend="chapter-building-system"/> and the host production directories.
     
    2828  variable is set up properly:</para>
    2929
    30 <screen><userinput>echo $CLFS</userinput></screen>
     30<screen><userinput>echo ${CLFS}</userinput></screen>
    3131
    3232  <para>Make sure the output shows the path to the CLFS partition's mount
  • the-end/reboot.xml

    r142e52c5 r2484938  
    3737  <para>Then unmount the virtual file systems:</para>
    3838
    39 <screen><userinput>umount $CLFS/dev/pts
    40 umount $CLFS/dev/shm
    41 umount $CLFS/dev
    42 umount $CLFS/proc
    43 umount $CLFS/sys</userinput></screen>
     39<screen><userinput>umount ${CLFS}/dev/pts
     40umount ${CLFS}/dev/shm
     41umount ${CLFS}/dev
     42umount ${CLFS}/proc
     43umount ${CLFS}/sys</userinput></screen>
    4444
    4545  <para>Unmount the CLFS file system itself:</para>
    4646
    47 <screen><userinput>umount $CLFS</userinput></screen>
     47<screen><userinput>umount ${CLFS}</userinput></screen>
    4848
    4949  <para>If multiple partitions were created, unmount the other
    5050  partitions before unmounting the main one, like this:</para>
    5151
    52 <screen><userinput>umount $CLFS/usr
    53 umount $CLFS/home
    54 umount $CLFS</userinput></screen>
     52<screen><userinput>umount ${CLFS}/usr
     53umount ${CLFS}/home
     54umount ${CLFS}</userinput></screen>
    5555
    5656  <para>Now, reboot the system with:</para>
Note: See TracChangeset for help on using the changeset viewer.