[PATCH modular 03/13] build.sh: allow user to specify an alternate bin directory

Gaetan Nadon memsize at videotron.ca
Thu Dec 30 08:12:54 PST 2010


On Wed, 2010-12-29 at 20:28 -0500, Trevor Woerner wrote:

>      # Choose which make program to use
> @@ -366,6 +368,7 @@ process() {
>         sh ${DIR_CONFIG}/${CONFCMD} \
>             --prefix=${PREFIX} \
>             ${EPREFIX_SET:+--exec-prefix="$EPREFIX"} \
> +           ${BINDIR+--bindir="$BINDIR"}
>             ${LIB_FLAGS} \
>             ${QUIET:+--quiet} \
>             ${CONFFLAGS} \
> 

It is not spelled clearly, but if you meant to use the distinction
between BINDIR being
"set" vs BINDIR being "empty" or "null", this would work, although very
obscure,
for BINDIR but not for PREFIX as it can be set through the command line,
not only
through an env variable. I did not know the shell could make that
distinction.
This can be demonstrated by:

export PREFIX=""
env | grep PREFIX
PREFIX=
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101230/bc6344b1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101230/bc6344b1/attachment.pgp>


More information about the xorg-devel mailing list