Angus Leeming <[EMAIL PROTECTED]> writes:

| I have a little wrapper script for configure that I invoke
| $ ./configure-14x devel xforms qt
| to configure the devel dir ready to build the xforms and qt frontends.
>
| It used to end:
>
| CONFIGURE="../configure --enable-maintainer-mode --with-version-suffix 
| --with-included-gettext --with-frontend=${FRONTEND}"
>
| echo ${CONFIGURE}
| cd ${BUILDDIR}
| ${CONFIGURE}
>
| But now we can build multiple frontends in the same build directory, that 
| CONFIGURE definition needs "'" quotes around the $FRONTEND variable:
>
| CONFIGURE="../configure --enable-maintainer-mode --with-version-suffix 
| --with-included-gettext --with-frontend='${FRONTEND}'"

What about using " instead of '?

in the shell this works:

var=\"hello\"
foo="../tull --with=$var"

echo $foo
../tull --with="hello"

is that what you need?

you might need to use eval

eval ${configure}

| Unfortunately, this means that the final
| ${CONFIGURE}
| no longer works and I have to replace it with an explicit
>
| ../configure --enable-maintainer-mode --with-version-suffix 
| --with-included-gettext --with-frontend='${FRONTEND}'
>
| Is there an elegant solution or am I stuck with having to replicate stuff?

I am sure there is...

-- 
        Lgb

Reply via email to