]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: make README-prereq more generic
authorJim Meyering <meyering@redhat.com>
Fri, 19 Mar 2010 09:11:24 +0000 (10:11 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 19 Mar 2010 09:14:46 +0000 (10:14 +0100)
* README-prereq: Adjust wording and reduce number of mentions of
"coreutils", so it's easier to reuse in another package: grep.

README-prereq

index fcb5058443ba6b79ba755bdacd3b5b30e3de0a2e..265161fa5ec1a08c3f63e50c8fe5674c5647aed5 100644 (file)
@@ -14,14 +14,18 @@ I.E. the tools checked for by the bootstrap script and include:
 - Texinfo   <http://www.gnu.org/software/texinfo/>
 
 Note please try to install/build official packages for your system.
-If these are not available then one can make them available only to
-the coreutils build using the following instructions.  Even if the
-official packages for your system are too old, please install them
-as they may be required to build the newer versions.  The examples
-below build into $HOME/coreutils/deps/, so first ensure that your
-$PATH is set correctly, which can be done for the current shell like:
+If these programs are not available use the following instructions
+to build them and install the results into a directory that you will
+then use when building this package.
 
-  export PATH=$HOME/coreutils/deps/bin:$PATH
+Even if the official version of a package for your system is too old,
+please install it, as it may be required to build the newer versions.
+The examples below install into $HOME/coreutils/deps/, so if you are
+going to follow these instructions, first ensure that your $PATH is
+set correctly by running this command:
+
+  prefix=$HOME/coreutils/deps
+  export PATH=$prefix/bin:$PATH
 
 * autoconf *
 
@@ -29,7 +33,7 @@ $PATH is set correctly, which can be done for the current shell like:
   git clone --depth=1 git://git.sv.gnu.org/autoconf.git
   git checkout v2.62
   autoreconf -vi
-  ./configure --prefix=$HOME/coreutils/deps
+  ./configure --prefix=$prefix
   make install
 
 * automake *
@@ -39,7 +43,7 @@ $PATH is set correctly, which can be done for the current shell like:
   cd automake
   git checkout v1.11.1
   ./bootstrap
-  ./configure --prefix=$HOME/coreutils/deps
+  ./configure --prefix=$prefix
   make install
 
 coreutils uses XZ utils (successor to LZMA) to create
@@ -51,7 +55,7 @@ requires version 1.10a or newer, as well as the xz program itself.
   git clone git://ctrl.tukaani.org/xz.git
   cd xz
   ./autogen.sh
-  ./configure --prefix=$HOME/coreutils/deps
+  ./configure --prefix=$prefix
   make install
 
-Now one can build coreutils as described in README-hacking.
+Now you can build this package as described in README-hacking.