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

Gaetan Nadon memsize at videotron.ca
Thu Dec 16 18:31:43 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`"
 DIR_ARCH=""
 DIR_CONFIG="."
-PREFIX=""
 
 # perform sanity checks on cmdline args which require arguments
 # arguments:
-- 
1.6.0.4



More information about the xorg-devel mailing list