Author: manuel
Date: 2005-05-07 05:05:53 -0600 (Sat, 07 May 2005)
New Revision: 4007

Modified:
   trunk/BOOK/general/sysutils/which.xml
Log:
Tagged which.xml

Modified: trunk/BOOK/general/sysutils/which.xml
===================================================================
--- trunk/BOOK/general/sysutils/which.xml       2005-05-07 10:53:26 UTC (rev 
4006)
+++ trunk/BOOK/general/sysutils/which.xml       2005-05-07 11:05:53 UTC (rev 
4007)
@@ -13,105 +13,124 @@
 ]>
 
 <sect1 id="which" xreflabel="which-&which-version;">
-<sect1info>
-<othername>$LastChangedBy$</othername>
-<date>$Date$</date>
-</sect1info>
-<?dbhtml filename="which.html"?>
-<title><application>which</application>-&which-version; and 
alternatives</title>
-<indexterm zone="which">
-<primary sortas="a-Which">Which</primary></indexterm>
+  <?dbhtml filename="which.html"?>
 
-<para>The presence or absence of the <command>which</command> program in the 
-main <acronym>LFS</acronym> book is probably one of the most contentious 
-issues on the mailing lists. It has resulted in at least one flame war in the 
-past. To hopefully put an end to this once and for all, presented here are two 
-options for equipping your system with <command>which</command>. The question 
-of which <quote><command>which</command></quote> is for you to decide.</para>
+  <sect1info>
+    <othername>$LastChangedBy$</othername>
+    <date>$Date$</date>
+  </sect1info>
 
-<para>The first option is to install the actual <acronym>GNU</acronym> program
-<emphasis>which</emphasis>.</para>
+  <title>Which-&which-version; and Alternatives</title>
 
-<sect2>
-<title>Introduction to <application>which</application></title>
+  <indexterm zone="which">
+    <primary sortas="a-Which">Which</primary>
+  </indexterm>
 
-<sect3><title>Package information</title>
-<itemizedlist spacing='compact'>
-<listitem><para>Download (HTTP): <ulink
-url="&which-download-http;"/></para></listitem>
-<listitem><para>Download (FTP): <ulink
-url="&which-download-ftp;"/></para></listitem>
-<listitem><para>Download MD5 sum: &which-md5sum;</para></listitem>
-<listitem><para>Download size: &which-size;</para></listitem>
-<listitem><para>Estimated disk space required:
-&which-buildsize;</para></listitem>
-<listitem><para>Estimated build time:
-&which-time;</para></listitem></itemizedlist>
-</sect3>
+  <para>The presence or absence of the <command>which</command> program 
+  in the main LFS book is probably one of the most contentious issues on the 
+  mailing lists. It has resulted in at least one flame war in the past. To 
hopefully 
+  put an end to this once and for all, presented here are two options for 
equipping 
+  your system with <command>which</command>. The question of which 
+  <quote><command>which</command></quote> is for you to decide.</para>
 
-</sect2>
+  <para>The first option is to install the actual GNU program
+  <application>which</application>.</para>
 
-<sect2>
-<title>Installation of <application>which</application></title>
+  <sect2 role="package">
+    <title>Introduction to Which</title>
 
-<para>Install <application>which</application> by running the following
-commands:</para>
+    <bridgehead renderas="sect3">Package Information</bridgehead>
+    <itemizedlist spacing="compact">
+      <listitem>
+        <para>Download (HTTP): <ulink url="&which-download-http;"/></para>
+      </listitem>
+      <listitem>
+        <para>Download (FTP): <ulink url="&which-download-ftp;"/></para>
+      </listitem>
+      <listitem>
+        <para>Download MD5 sum: &which-md5sum;</para>
+      </listitem>
+      <listitem>
+        <para>Download size: &which-size;</para>
+      </listitem>
+      <listitem>
+        <para>Estimated disk space required: &which-buildsize;</para>
+      </listitem>
+      <listitem>
+        <para>Estimated build time: &which-time;</para>
+      </listitem>
+    </itemizedlist>
 
-<screen><userinput><command>./configure --prefix=/usr &amp;&amp;
-make</command></userinput></screen>
+  </sect2>
 
-<para>Now, as the root user:</para>
+  <sect2 role="installation">
+    <title>Installation of Which</title>
 
-<screen><userinput role='root'><command>make 
install</command></userinput></screen>
+    <para>Install <application>which</application> by running the following
+    commands:</para>
 
-</sect2>
+<screen><userinput>./configure --prefix=/usr &amp;&amp;
+make</userinput></screen>
 
-<sect2>
-<title>Contents</title>
+    <para>Now, as the <systemitem class="username">root</systemitem> 
user:</para>
 
-<segmentedlist>
-<segtitle>Installed Program</segtitle>
-<segtitle>Installed Libraries</segtitle>
-<segtitle>Installed Directories</segtitle>
+<screen role="root"><userinput>make install</userinput></screen>
 
-<seglistitem>
-<seg>which</seg>
-<seg>None</seg>
-<seg>None</seg>
-</seglistitem>
-</segmentedlist>
+  </sect2>
 
-<variablelist>
-<bridgehead renderas="sect3">Short Descriptions</bridgehead>
-<?dbfo list-presentation="list"?>
+  <sect2 role="content">
+    <title>Contents</title>
 
-<varlistentry id="which-prog">
-<term><command>which</command></term>
-<listitem><para>shows the full path of (shell) commands installed in your 
-<envar>PATH</envar>.</para>
-<indexterm zone="which which-prog">
-<primary sortas="b-which">which</primary>
-</indexterm></listitem>
-</varlistentry>
-</variablelist>
+    <segmentedlist>
+      <segtitle>Installed Program</segtitle>
+      <segtitle>Installed Libraries</segtitle>
+      <segtitle>Installed Directories</segtitle>
 
-</sect2>
+      <seglistitem>
+        <seg>which</seg>
+        <seg>None</seg>
+        <seg>None</seg>
+      </seglistitem>
+    </segmentedlist>
 
-<sect2>
-<title>The 'which' script</title>
-<para>The second option (for those who don't want to install the program)
-is to create a simple script (execute as the root user):</para>
+    <variablelist>
+      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
+      <?dbfo list-presentation="list"?>
+      <?dbhtml list-presentation="table"?>
 
-<screen><userinput role='root'><command>cat &gt; /usr/bin/which &lt;&lt; 
"EOF"</command>
-#!/bin/bash
-type -pa "$@" | head -n 1 ; exit ${PIPESTATUS[0]}
-<command>EOF
-chmod 755 /usr/bin/which
-chown root:root /usr/bin/which</command></userinput></screen>
+      <varlistentry id="which-prog">
+        <term><command>which</command></term>
+        <listitem>
+          <para>shows the full path of (shell) commands installed in your 
+          <envar>PATH</envar>.</para>
+          <indexterm zone="which which-prog">
+            <primary sortas="b-which">which</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
 
-<para>This should work OK and is probably the easiest solution
-for most cases, but is not the most comprehensive implementation.</para>
-</sect2>
+    </variablelist>
 
+  </sect2>
+
+  <sect2 role="installation">
+    <title>The 'which' Script</title>
+
+    <para>The second option (for those who don't want to install the program)
+    is to create a simple script (execute as the 
+    <systemitem class="username">root</systemitem> user):</para>
+
+<screen role="root"><userinput>cat &gt; /usr/bin/which &lt;&lt; "EOF"
+<literal>#!/bin/bash
+type -pa "$@" | head -n 1 ; exit ${PIPESTATUS[0]}</literal>
+EOF
+chmod -v 755 /usr/bin/which
+chown -v root:root /usr/bin/which</userinput></screen>
+
+    <para>This should work OK and is probably the easiest solution
+    for most cases, but is not the most comprehensive implementation.</para>
+
+  </sect2>
+
 </sect1>
 

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to