[PATCH modular 01/13] build.sh: expose the PREFIX variable for the user to set

Gaetan Nadon memsize at videotron.ca
Wed Dec 29 07:44:19 PST 2010

Currently PREFIX is an internal build.sh variable which is used
to emit the --prefix option to all modules.

Make this variable part of the public interface and pick-up the value
from the environment.

That variable is refered to in 6 places in --help but user cannot set it.

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
 build.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/build.sh b/build.sh
index 8568083..4979fc0 100755
--- a/build.sh
+++ b/build.sh
@@ -3,6 +3,8 @@
 envoptions() {
 cat << EOF
 Environment variables specific to build.sh:
+  PREFIX      Install architecture-independent files in PREFIX [/usr/local]
+              Each module/components is invoked with --prefix
   QUIET       Do not print messages saying which checks are being made
               Each module/components is invoked with --quite
   GITROOT     Source code repository path [git://anongit.freedesktop.org/git]
@@ -971,7 +973,6 @@ usage() {
 HAVE_ARCH="`uname -i`"
 # perform sanity checks on cmdline args which require arguments
 # arguments:

More information about the xorg-devel mailing list