Index: general.ent
===================================================================
--- general.ent	(revision 0fb1ed298adafca7a5beba6373383441728ad923)
+++ general.ent	(revision 99e8a2293b3733b739d409344a3950e18025a291)
@@ -1,3 +1,3 @@
-<!ENTITY day          "13">
+<!ENTITY day          "14">
 <!ENTITY month        "01">
 <!ENTITY year         "2005">
Index: postlfs/config/profile.xml
===================================================================
--- postlfs/config/profile.xml	(revision 0fb1ed298adafca7a5beba6373383441728ad923)
+++ postlfs/config/profile.xml	(revision 99e8a2293b3733b739d409344a3950e18025a291)
@@ -18,6 +18,6 @@
 help create an environment.  Each file has a specific use and
 may affect login and interactive environments differently.  The files in
-the <filename class="directory">/etc</filename> directory generally provide global
-settings. If an equivalent file exists in your home directory it may
+the <filename class="directory">/etc</filename> directory generally provide 
+global settings. If an equivalent file exists in your home directory it may
 override the global settings.
 </para>
@@ -26,5 +26,6 @@
 <filename>/bin/login</filename>, by reading the <filename>/etc/passwd</filename> 
 file.  This shell invocation normally reads <filename>/etc/profile</filename> 
-and its private equivalent <filename>~/.bash_profile</filename> upon startup.</para>
+and its private equivalent <filename>~/.bash_profile</filename> upon 
+startup.</para>
 
 <para>An interactive non-login shell is normally started at the command-line
@@ -46,7 +47,7 @@
 interactive login shell.</para>
 
-<para>To the standard files, we also add <filename>/etc/bashrc</filename>
-which is called from the user's <filename>~/.bashrc</filename> for 
-system wide initialization of non-login shells.</para>
+<para>To the standard files, <filename>/etc/bashrc</filename> is called from 
+the user's <filename>~/.bashrc</filename> for system wide initialization of 
+non-login shells.</para>
 
 <para>For more information see <command>info bash</command> -- 
@@ -54,6 +55,9 @@
 Shells.</emphasis></para>
 
-<sect2>
+<sect2 id="etc-profile-profile">
 <title><filename>/etc/profile</filename></title>
+<indexterm zone="postlfs-config-profile etc-profile-profile">
+<primary sortas="e-etc-profile-profile">/etc/profile</primary>
+</indexterm>
 
 <para>Here is a base <filename>/etc/profile</filename>. This file starts by
@@ -131,5 +135,5 @@
 done
  
-# Now to clean up after ourselves
+# Now to clean up
 unset pathremove pathprepend pathappend 
 
@@ -137,10 +141,21 @@
 <command>EOF</command></userinput></screen>
 
-<para>Now create the <filename class='directory'>/etc/profile.d</filename> directory.</para>
+<sect3 id="etc-profile.d"><title>The /etc/profile.d directory</title>
+<indexterm zone="postlfs-config-profile etc-profile.d">
+<primary sortas="e-etc-profile.d">/etc/profile.d</primary>
+</indexterm>
+
+<para>Now create the <filename class='directory'>/etc/profile.d</filename> 
+directory, where the individual initialization scripts are placed.</para>
 
 <screen><userinput><command>install --directory --mode=0755 --owner=root --group=root /etc/profile.d</command></userinput></screen>
-
-<sect3>
+</sect3>
+
+<sect3 id="etc-profile.d-dircolors.sh">
 <title><filename>/etc/profile.d/dircolors.sh</filename></title>
+<indexterm zone="postlfs-config-profile etc-profile.d-dircolors.sh">
+<primary 
+sortas="e-etc-profile.d-dircolors.sh">/etc/profile.d/dircolors.sh</primary>
+</indexterm>
 
 <para>This script uses the <filename>~/.dircolors</filename> and
@@ -148,6 +163,5 @@
 directory listing. They control colorized output of things like <command>ls
 --color</command>.  The explaination of how to initialize these files is at the
-end of this section.  </para>
-
+end of this section.</para>
 
 <screen><userinput><command>cat &gt; /etc/profile.d/dircolors.sh &lt;&lt; "EOF"</command>
@@ -164,13 +178,17 @@
 </sect3>
 
-
-<sect3>
+<sect3 id="extrapaths.sh">
 <title><filename>/etc/profile.d/extrapaths.sh</filename></title>
+<indexterm zone="postlfs-config-profile extrapaths.sh">
+<primary 
+sortas="e-etc-profile.d-extrapaths.sh">/etc/profile.d/extrapaths.sh</primary>
+</indexterm>
 
 <para>This script adds several useful paths to the <envar>PATH</envar> and
-<envar>PKG_CONFIG_PATH</envar> environment variables.  If you want, you can uncomment
-the last section to put a dot at the end of your path. This will allow executables in the 
-current working directory to be executed without specifiying a ./, however
-you are warned that this is generally considered a security hazard.</para>
+<envar>PKG_CONFIG_PATH</envar> environment variables.  If you want, you can 
+uncomment the last section to put a dot at the end of your path. This will 
+allow executables in the current working directory to be executed without 
+specifiying a ./, however you are warned that this is generally considered a 
+security hazard.</para>
  
 <screen><userinput><command>cat &gt; /etc/profile.d/extrapaths.sh &lt;&lt; "EOF"</command>
@@ -199,9 +217,14 @@
 </sect3>
 
-<sect3>
+<sect3 id="readline.sh">
 <title><filename>/etc/profile.d/readline.sh</filename></title>
-
-<para>This script sets up the default <filename>inputrc</filename> configuration file.
-If the user does not have individual settings, it uses the global file.</para>
+<indexterm zone="postlfs-config-profile readline.sh">
+<primary 
+sortas="e-etc-profile.d-readline.sh">/etc/profile.d/readline.sh</primary>
+</indexterm>
+
+<para>This script sets up the default <filename>inputrc</filename> 
+configuration file. If the user does not have individual settings, it uses the 
+global file.</para>
 
 <screen><userinput><command>cat &gt; /etc/profile.d/readline.sh &lt;&lt; "EOF"</command>
@@ -214,8 +237,13 @@
 </sect3>
 
-<sect3>
+<sect3 id="tinker-term.sh">
 <title><filename>/etc/profile.d/tinker-term.sh</filename></title>
-
-<para>Some applications need a specific <envar>TERM</envar> setting to support color.</para>
+<indexterm zone="postlfs-config-profile tinker-term.sh">
+<primary 
+sortas="e-etc-profile.d-tinker-term.sh">/etc/profile.d/tinker-term.sh</primary>
+</indexterm>
+
+<para>Some applications need a specific <envar>TERM</envar> setting to support 
+color.</para>
 
 <screen><userinput><command>cat &gt; /etc/profile.d/tinker-term.sh &lt;&lt; "EOF"</command>
@@ -233,10 +261,14 @@
 </sect3>
 
-<sect3>
+<sect3 id="umask.sh">
 <title><filename>/etc/profile.d/umask.sh</filename></title>
- 
-<para>Setting the <command>umask</command> value is important for security. Here
-we turn off the default group write permissions for system users and when the
-user name and group name are not the same.</para>
+<indexterm zone="postlfs-config-profile umask.sh">
+<primary 
+sortas="e-etc-profile.d-umask.sh">/etc/profile.d/umask.sh</primary>
+</indexterm>
+ 
+<para>Setting the <command>umask</command> value is important for security. 
+Here the default group write permissions are turned off for system users and when 
+the user name and group name are not the same.</para>
 
 <screen><userinput><command>cat &gt; /etc/profile.d/umask.sh &lt;&lt; "EOF"</command>
@@ -250,9 +282,13 @@
 </sect3>
 
-<sect3>
+<sect3 id="X.sh">
 <title><filename>/etc/profile.d/X.sh</filename></title>
-
-<para>If <application>X</application> is installed, we also update the <envar>PATH</envar>
-and <envar>PKG_CONFIG_PATH</envar> variables.</para>
+<indexterm zone="postlfs-config-profile X.sh">
+<primary 
+sortas="e-etc-profile.d-X.sh">/etc/profile.d/X.sh</primary>
+</indexterm>
+
+<para>If <application>X</application> is installed, the <envar>PATH</envar> 
+and <envar>PKG_CONFIG_PATH</envar> variables are also updated.</para>
 
 <screen><userinput><command>cat &gt; /etc/profile.d/X.sh &lt;&lt; "EOF"</command>
@@ -266,11 +302,16 @@
 </sect3>
 
-<sect3>
+<sect3 id="titlebars.sh">
 <title><filename>/etc/profile.d/xterm-titlebars.sh</filename></title>
- 
-<para>This script shows an example of a different way of setting the prompt.  The normal
-variable, <envar>PS1</envar>, is supplemented by <envar>PROMPT_COMMAND</envar>.
-If set, the value of <envar>PROMPT_COMMAND</envar> is executed as a command prior to 
-issuing each primary prompt. </para>
+<indexterm zone="postlfs-config-profile titlebars.sh">
+<primary 
+sortas="e-etc-profile.d-titlebars.sh">/etc/profile.d/titlebars.sh</primary>
+</indexterm>
+
+<para>This script shows an example of a different way of setting the prompt. 
+The normal variable, <envar>PS1</envar>, is supplemented by 
+<envar>PROMPT_COMMAND</envar>. If set, the value of 
+<envar>PROMPT_COMMAND</envar> is executed as a command prior to issuing each 
+primary prompt.</para>
  
 <screen><userinput><command>cat &gt; /etc/profile.d/xterm-titlebars.sh &lt;&lt; "EOF"</command>
@@ -283,6 +324,10 @@
 </sect3>
 
-<sect3>
+<sect3 id="i18n.sh">
 <title><filename>/etc/profile.d/i18n.sh</filename></title>
+<indexterm zone="postlfs-config-profile i18n.sh">
+<primary 
+sortas="e-etc-profile.d-i18n.sh">/etc/profile.d/i18n.sh</primary>
+</indexterm>
 
 <para>This script shows how to set some environment variables necessary for 
@@ -327,7 +372,8 @@
 <command>EOF</command></userinput></screen>
 
-<para>The <envar>LC_ALL</envar> variable sets the same value for all locale categories. For 
-better control, you may prefer to set values individually for all categories 
-listed in the output of the <command>locale</command> command.</para>
+<para>The <envar>LC_ALL</envar> variable sets the same value for all locale 
+categories. For better control, you may prefer to set values individually for 
+all categories listed in the output of the <command>locale</command> 
+command.</para>
 
 <para>The <envar>G_FILENAME_ENCODING</envar> variable tells applications
@@ -341,6 +387,6 @@
 <title><filename>Other initialization values</filename></title>
 
-<para>Other initialization can easily be added to the <filename>profile</filename>
-by adding additional scripts to the 
+<para>Other initialization can easily be added to the 
+<filename>profile</filename> by adding additional scripts to the 
 <filename class='directory'>/etc/profile.d</filename> directory.</para>
 </sect3>
@@ -348,6 +394,11 @@
 </sect2>
 
-<sect2>
+<sect2 id="etc-bashrc-profile">
 <title><filename>/etc/bashrc</filename></title>
+<indexterm zone="postlfs-config-profile etc-bashrc-profile">
+<primary 
+sortas="e-etc-bashrc-profile">/etc/bashrc</primary>
+</indexterm>
+
 <para>Here is a base <filename>/etc/bashrc</filename>.  Comments in the
 file should explain everything you need.</para>
@@ -393,7 +444,9 @@
 </sect2>
 
-
-<sect2>
+<sect2 id="bash_profile-profile">
 <title><filename>~/.bash_profile</filename></title>
+<indexterm zone="postlfs-config-profile bash_profile-profile">
+<primary sortas="e-AA.bash_profile-profile">~/.bash_profile</primary>
+</indexterm>
 
 <para>Here is a base <filename>~/.bash_profile</filename>.  If you want each
@@ -445,6 +498,9 @@
 </sect2>
  
-<sect2>
+<sect2 id="bashrc-profile">
 <title><filename>~/.bashrc</filename></title>
+<indexterm zone="postlfs-config-profile bashrc-profile">
+<primary sortas="e-AA.bashrc-profile">~/.bashrc</primary>
+</indexterm>
 
 <para>Here is a base <filename>~/.bashrc</filename>.  The comments and
@@ -474,6 +530,9 @@
  
  
-<sect2>
+<sect2 id="bash_logout-profile">
 <title><filename>~/.bash_logout</filename></title>
+<indexterm zone="postlfs-config-profile bash_logout-profile">
+<primary sortas="e-AA.bash_logout-profile">~/.bash_logout</primary>
+</indexterm>
 
 <para>This is an empty <filename>~/.bash_logout</filename> that can be used as
@@ -494,12 +553,18 @@
  
  
-<sect2>
+<sect2 id="etc-dircolors-profile">
 <title><filename>/etc/dircolors</filename></title>
+<indexterm zone="postlfs-config-profile etc-dircolors-profile">
+<primary sortas="e-etc-dircolors-profile">/etc/dircolors</primary>
+</indexterm>
+<indexterm zone="postlfs-config-profile etc-dircolors-profile">
+<primary sortas="e-AA.dircolors-profile">~/.dircolors</primary>
+</indexterm>
 
 <para> If you want to use the <filename>dircolors</filename> capability, then
 run the following command. The <filename class="directory">/etc/skel</filename>
 setup steps seen above also can be used here to provide a
-<filename>.dircolors</filename> file when a new user is set up. As before, just
-change the output file name on the following command and assure the
+<filename>~/.dircolors</filename> file when a new user is set up. As before, 
+just change the output file name on the following command and assure the
 permissions, owner, and group are correct on the files created and/or copied.
 </para>
@@ -514,6 +579,7 @@
 <para>Finally, Ian Macdonald has written an excellent collection of tips and
 tricks to enhance your shell environment.  You can read it online at
-<ulink
-url="http://www.caliban.org/bash/index.shtml">http://www.caliban.org/bash/index.shtml</ulink>.</para>
+<ulink 
+url="http://www.caliban.org/bash/index.shtml">
+http://www.caliban.org/bash/index.shtml</ulink>.</para>
 </sect2>
 </sect1>
